DatabaseConfiguration
Configuration for opening a database.
Constructors
Properties
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 sync mode is very safe, but it is also dramatically slower.
Advises Core to enable or disable memory-mapped Database files, if possible. Memory-mapped database files are, currently, enabled by default, except on macOS where they cannot be enabled at all.
Functions
Set the canonical path of the directory in which to store the database. If the directory doesn't already exist it will be created. If it cannot be created a CouchbaseLiteError will be thrown.
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 sync mode is very safe, but it is also dramatically slower.
Advises Core to enable or disable memory-mapped Database files, if possible. Memory-mapped database files are, currently, enabled by default, except on macOS where they cannot be enabled at all.