Database configuration options.
More...
#include <cbl++/Database.hh>
|
| std::string | directory |
| | The parent directory of the database.
|
| EncryptionKey | encryptionKey |
| | The database's encryption key (if any)
|
| bool | fullSync {false} |
| | As Couchbase Lite normally configures its databases, There is a very small (though non-zero) chance that a power failure at just the wrong time could cause the most recently committed transaction's changes to be lost.
|
Database configuration options.
◆ DatabaseConfiguration() [1/2]
Constructs a configuration from a C CBLDatabaseConfiguration, copying the directory and (in EE) encryption key out of it.
- Parameters
-
| cblConfig | The C configuration to copy from. |
◆ DatabaseConfiguration() [2/2]
| cbl::DatabaseConfiguration::DatabaseConfiguration |
( |
| ) |
|
|
default |
Default constructor: empty directory, no encryption, full-sync off.
◆ defaultConfiguration()
Returns a configuration initialized with the default settings (default directory, no encryption, full-sync off).
◆ directory
| std::string cbl::DatabaseConfiguration::directory |
The parent directory of the database.
◆ encryptionKey
The database's encryption key (if any)
◆ fullSync
| bool cbl::DatabaseConfiguration::fullSync {false} |
As Couchbase Lite normally configures its databases, There is a very small (though non-zero) chance that a power failure at just the wrong time could cause the most recently committed transaction's changes to be lost.
This would cause the database to appear as it did immediately before that transaction.
Setting this mode true ensures that an operating system crash or power failure will not cause the loss of any data. FULL synchronous is very safe but it is also dramatically slower.
The documentation for this class was generated from the following file: