The xSQL configuration file can be used to define an array of memory devices which corresponds to C API
mco_device_t
structures.For an overview see page Configuration File Parameters
The
devices
section has syntax like the following to define an array:devices : [ { type : memory, assignment : database, name : "diskdb-db", size : 10m }, { type : memory, assignment : cache, name : "diskdb-cache", size : 10m }, { type : file, assignment : persistent, name : "diskdb.dbs" }, { type : file, assignment : log, name : "diskdb.log" } ]An alternative to specifying the individual memory devices, the following "shortcut" parameters can be specified outside of the
devices
section:database_size : 10m, cache_size : 10m, database_filename: "diskdb.dbs", log_filename : "diskdb.log",Note that care must be taken to avoid conflicts between these shortcut parameters and the device specifications.
The following table lists the possible options for the "shortcut" parameters and the
devices
section with the corresponding C API structures and values specified in the comment: