storage
This option sets the storage type of the databases opened under this TFS handle. Supported values are:
Value | Description |
---|---|
ondisk
|
Use the disk-based engine |
inmemory_volatile
|
Use the in-memory engine. The database is empty when the first client opens it and all contents are discarded when the last client closes it. |
inmemory_load
|
Use the in-memory engine. The database contents are loaded from disk when the first client opens it and contents are not automatically saved when the last client closes it. |
inmemory_keep
|
Use the in-memory engine. The database is empty when the first client opens it and any rows in the database will be written to disk when the last client closes it. Any existing disk-based files will be overwritten by the contents of the in-memory database. |
inmemory_persist
|
Use the in-memory engine. The database contents are loaded from disk when the first client opens it and contents are automatically saved when the last client closes it. |
- Default Value
- If the
storage
option is not defined, the default value ofONDISK
is used.
- Example
-
storage=ONDISK
- Database Configuration Options
This option key is associated with the RDM_DB handle (or RDM_CPP::Db for C++) and can be set using one of the following functions:
- SQLSetConnectAttr()
- rdm_dbSetOption()
- rdm_dbSetOptions()
- RDM_CPP::Db::SetOption()
- RDM_CPP::Db::SetOptions()