Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.
The following page has been changed by SusanCline:
http://wiki.apache.org/db-derby/DatabaseNamesRelativeAbsolute
------------------------------------------------------------------------------
in that they can include the URL path separator character forward slash
'/'.
- A database name is either relative or absolute.
+ == Database Names are either relative or absolute ==
An absolute path corresponds to an absolute path on your file system:
- jdbc:derby:/home/fred/databases/projects/cdcollection
+ {{{jdbc:derby:/home/fred/databases/projects/cdcollection}}}
means the top level folder for the database is:
- /home/fred/databases/projects/cdcollection
+ {{{/home/fred/databases/projects/cdcollection}}}
A JDBC connection URL of:
- jdbc:derby:d:/home/2006/accounts
+ {{{jdbc:derby:d:/home/2006/accounts}}}
means the top level folder for the database is:
- d:\home\2006\accounts
+ {{{d:\home\2006\accounts}}}
A relative path is relative to the value of the system property
'''derby.system.home''' if it is set, otherwise relative the current working
@@ -32, +32 @@
database described above, examples on windows would be similar,
including use of the forward slash.
+ {{{
derby.system.home=/home/fred/databases
jdbc:derby:projects/cdcollection
@@ -42, +43 @@
jdbc:derby:databases/projects/cdcollection
current working directory = /home/fred/databases/projects
- jdbc:derby:cdcollection
+ jdbc:derby:cdcollection}}}
This wiki entry is originally from a post by Dan Debrunner on the derby-users mailing list
on February 1, 2006.
|