This commit is contained in:
坏黑
2019-10-31 00:51:58 +08:00
parent 25011a7a57
commit 1e55b6be29
2 changed files with 5 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ public class QueryUpdate {
return this;
}
public void run(DataSource dataSource) {
this.to(dataSource).run();
}
public RunnableUpdate to(DataSource dataSource) {
return new RunnableUpdate(toQuery()).dataSource(dataSource).statement(s -> {
int index = 1;