Skip to content

Commit 27c7650

Browse files
committed
JDBC batch updates
Add support for JDBC batch updates. It includes an implementation of Statement.*Batch(...) as well as PreparedStatement.*Batch() methods. Under the hood SQLConnection uses the pipelining sending requests one by one asynchronously and awaiting all of them. There are some issues regarding vinyl storage engine where execution order are not specified and DDL statements which are not transactional. Closes: #62
1 parent 66a4fbd commit 27c7650

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/tarantool/jdbc/SQLStatement.java

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import java.util.ArrayList;
1818
import java.util.Collections;
1919
import java.util.List;
20+
import java.util.ArrayList;
21+
import java.util.List;
2022
import java.util.concurrent.TimeUnit;
2123
import java.util.concurrent.atomic.AtomicBoolean;
2224
import java.util.stream.Collectors;
@@ -44,6 +46,8 @@ public class SQLStatement implements TarantoolStatement {
4446

4547
private List<String> batchQueries = new ArrayList<>();
4648

49+
private List<String> batchQueries = new ArrayList<>();
50+
4751
private boolean isCloseOnCompletion;
4852

4953
private final int resultSetType;

0 commit comments

Comments
 (0)