| Class | DataObjects::URI |
| In: |
lib/data_objects/uri.rb
|
| Parent: | Object |
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 |
| fragment | [R] | |
| host | [R] | |
| password | [R] | |
| path | [R] | |
| port | [R] | |
| query | [R] | |
| scheme | [R] | |
| subscheme | [R] | |
| user | [R] |
Make a DataObjects::URI object by parsing a string. Simply delegates to Addressable::URI::parse.