Class | DataObjects::URI |
In: |
lib/data_objects/uri.rb
|
Parent: | Struct.new(:scheme, :user, :password, :host, :port, :path, :query, :fragment) |
A DataObjects URI is of the form scheme://user:password@host:port/path#fragment
The elements are all optional except scheme and path:
scheme: | The name of a DBMS for which you have a do_\<scheme\> adapter gem installed. If scheme is jdbc, the actual DBMS is in the path followed by a colon. |
user: | The name of the user to authenticate to the database |
password: | The password to use in authentication |
host: | The domain name (defaulting to localhost) where the database is available |
port: | The TCP/IP port number to use for the connection |
path: | The name or path to the database |
query: | Parameters for the connection, for example encoding=utf8 |
fragment: | Not currently known to be in use, but available to the adapters |