Skip to content

Commit f8e6940

Browse files
committed
add in mem db
1 parent 78912c3 commit f8e6940

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class BatchProcessing {
1414
public void getConnection(){
1515
try {
1616
Class.forName("org.h2.Driver");
17-
connection = DriverManager.getConnection("jdbc:h2:file:C:\\EMPLOYEEDB", "SA", "");
17+
connection = DriverManager.getConnection("jdbc:h2:mem:db", "SA", "");
1818
connection.setAutoCommit(false);
1919
} catch (Exception e) {
2020
e.printStackTrace(System.out);

0 commit comments

Comments
 (0)