转至官方文档
Topic | URL Format and Examples |
jdbc:h2:[file:][<path>]<databaseName> | |
jdbc:h2:mem: | |
jdbc:h2:mem:<databaseName> | |
jdbc:h2:tcp://<server>[:<port>]/[<path>]<databaseName> | |
jdbc:h2:ssl://<server>[:<port>]/<databaseName> | |
jdbc:h2:<url>;CIPHER=[AES|XTEA] | |
jdbc:h2:<url>;FILE_LOCK={FILE|SOCKET|NO} | |
jdbc:h2:<url>;IFEXISTS=TRUE | |
jdbc:h2:<url>;DB_CLOSE_ON_EXIT=FALSE | |
jdbc:h2:<url>;INIT=RUNSCRIPT FROM '~/create.sql' | |
jdbc:h2:<url>[;USER=<username>][;PASSWORD=<value>] | |
jdbc:h2:<url>;TRACE_LEVEL_FILE=<level 0..3> | |
jdbc:h2:<url>;IGNORE_UNKNOWN_SETTINGS=TRUE | |
jdbc:h2:<url>;ACCESS_MODE_DATA=rws | |
jdbc:h2:zip:<zipFileName>!/<databaseName> | |
jdbc:h2:<url>;MODE=<databaseType> | |
jdbc:h2:<url>;AUTO_RECONNECT=TRUE | |
jdbc:h2:<url>;AUTO_SERVER=TRUE | |
jdbc:h2:<url>;PAGE_SIZE=512 | |
jdbc:h2:<url>;<setting>=<value>[;<setting>=<value>...] |