This syntax has the following components.
- jdbc:derby:
In JDBC terminology, derby is the subprotocol for
connecting to a
database. The subprotocol is always derby and does not vary.
- subsubprotocol:
subsubprotocol specifies where
looks for a database:
in a directory, in memory, in a classpath, or in a jar file.
subsubprotocol is one of the following:
- databaseName
Specify the databaseName to connect to an existing database or a new
one.
The databaseName value can be either an absolute path name or a
path name relative to the system directory. For example,
thisDB, databases/thisDB, and
c:/databases/2014/january/thisDB can all be valid values.
See "Connecting to databases" and its subsections in the
. The path separator in the
connection URL is a forward slash (/), even in Windows path
names. The databaseName value cannot contain a colon
(:), except for the colon after the drive name in a Windows
path name.
- attributes
Specify zero or more database connection URL attributes as detailed in
.