In the [CDB] section settings for interaction between Dr.Web MailD and CDB database are specified:
Sources = {path to file}
|
Path to the CDB database file.
|
Default value:
Sources =
|
SkipDomains = {LookupLite}
|
List of domains for which request to database is not required.
This parameter often allows to improve total performance and considerably reduce server load.
Please note that the parameter value is LookupLite.
The parameter value can also be locally overridden in a Lookup.
|
Default value:
SkipDomains =
|
OnError = {ignore | exception}
|
Sets the mode of error handling (errors that occur in Lookup when connecting to the specified data source).
Allowed modes:
•ignore – ignore the error and continue message processing (the error is only logged); •exception – generate an exception which is handled as a message processing error. The handling method corresponds to the ProcessingError parameter value set for the module in operation of which this error occurred. The parameter value can also be locally overridden in a Lookup.
|
Default value:
OnError = ignore
|
CDB database is a read-only storage of [alphanumerical_key]:[alphanumerical_value] pairs.
You may use tinycdb package to create a database file. Each file is represented as a single table; name of the table is the name of the corresponding file (without the full path to it: /path/to/table.cdb -> table.cdb).
CDB database does not support SQL query language, so the driver emulates the single SQL command to unify operation with Lookup:
select * from @tablename where key='@string'
where @tablename is a filename.
|