This is an old revision of the document!
Omnidex uses Connection Strings to connect to Omnidex Environment Files. A Connection String is a universal syntax that describes the location, network information and options for connecting to the environment file.
The full syntax of the Omnidex Connection String is:
[host:port:pool]filename[node];options
Portions of the connection string are optional and can be omitted as long as enough information remains to support the connection. Omitted portions will be replaced with their corresponding defaults. The defaults are:
| Component | Default treatment |
|---|---|
| host | Defaults to localhost |
| port | Defaults to 7555 |
| pool | Defaults to a non-pooled environment |
| filename | Defaults to the pooled environment. May only be omitted if a pool is provided |
| node | Defaults to the named environment, rather than a specific node. Only used in Omnidex Grids. |
| options | Defaults to a connection with READ-WRITE privileges |
The following are examples of shortened versions of connection strings that use some of these defaults:
| Short version | Full version | Description |
|---|---|---|
| filename | [localhost:7555]filename | Connects to the named Environment File on the local machine using port 7555. No connection pooling is involved. |
| [host]filename | [host:7555]filename | Connects to the named Environment File on the named host using port 7555. No connection pooling is involved. |
| [host:port]filename | [host:port]filename | Connects to the named Environment File on the named host and port. No connection pooling is involved. |
| [::pool]filename | [localhost:7555:pool] | Connects to the named Environment File on the local host, using port 7555, using the named pool. (GENERIC pools only) |
| [::pool] | [host:7555:pool] | Connects to the named connection pool on the local machine using port 7555. |
Note that each of the individual segments of the connection strings may be replaced with environment variables.