Configuration settings
The
Eloquera DB server uses the Eloquera.config file for reading the settings assigned by the
developer/administrator. The client library does not need the configuration
file as it gets all required information from the connection string and by
analyzing the environment.
In the
desktop mode, the server library still needs the configuration data. Prior to
the version 3.1.2, the Eloquera.config file was
required for the server library to function.
Starting
from the version 3.1.2, the configuration can be set up programmatically. In
absence of the Eloquera.config file, the server will
assume the default configuration except the path to the database files. This
path must be set after establishing the connection and prior to any other
operations with the databases:
DB db = new DB("server=(local);options=none;");
DB.Configuration.ServerSettings.DatabasePath = @"c:\dev\db";
Note
that the programmatic settings only work with the desktop mode, and have no
power in the client/server mode.