Embedded |
jdbc:h2:~/test | 'test' in the current user home directory |
jdbc:h2:/data/test | 'test' in the directory /data/ |
jdbc:h2:test | 'test' in the current working directory |
In-Memory |
jdbc:h2:mem:test | named; multiple connections within the same process |
jdbc:h2:mem: | unnamed private database; only one connections |
Server Mode |
jdbc:h2:tcp://localhost/~/test | 'test' in the current user home directory |
jdbc:h2:tcp://localhost//data/test | 'test' in the directory /data/ |
Compatibility |
jdbc:h2:...;MODE=MySQL | or DB2, Derby, HSQLDB, MSSQLServer, Oracle, PostgreSQL |
Debug |
jdbc:...;TRACE_LEVEL_FILE=3 | logs JDBC calls to test.trace.db |