이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Appendix B. JDBC database connection URLs for databases supported by Quarkus with development support
You can use a JDBC database connection URL to connect to a relational database. Each database has its own format of the database URL that contains information about the database itself and other configuration properties.
The following examples show you JDBC database connection URLs for databases with development support. For more information about development support, see the Development Support Scope of Coverage page.
B.1. Derby database URL example 링크 복사링크가 클립보드에 복사되었습니다!
Derby is an embedded database that can run as a server, based on a file, or live in memory.
Configuration options
jdbc:derby:[//serverName[:portNumber]/][memory:]databaseName[;property=value[;property=value]]
jdbc:derby:[//serverName[:portNumber]/][memory:]databaseName[;property=value[;property=value]]
Example
jdbc:derby://localhost:1527/myDB, jdbc:derby:memory:myDB;create=true
jdbc:derby://localhost:1527/myDB, jdbc:derby:memory:myDB;create=true
B.2. H2 database URL example 링크 복사링크가 클립보드에 복사되었습니다!
H2 is an embedded database that can run as a server, based on a file, or live completely in memory.
Configuration options
jdbc:h2:{ {.|mem:}[name] | [file:]fileName | {tcp|ssl}:[//]server[:port][,server2[:port]]/name }[;key=value…]
jdbc:h2:{ {.|mem:}[name] | [file:]fileName | {tcp|ssl}:[//]server[:port][,server2[:port]]/name }[;key=value…]
Example
jdbc:h2:tcp://localhost/~/test, jdbc:h2:mem:myDB
jdbc:h2:tcp://localhost/~/test, jdbc:h2:mem:myDB
Revised on 2024-06-07 11:17:18 UTC