Click or drag to resize

DatabaseOptions Class

Options for opening a database. All properties default to false or null.
Inheritance Hierarchy
SystemObject
  Couchbase.LiteDatabaseOptions

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public sealed class DatabaseOptions

The DatabaseOptions type exposes the following members.

Constructors
  NameDescription
Public methodDatabaseOptions
Initializes a new instance of the DatabaseOptions class
Top
Properties
  NameDescription
Public propertyCreate
Create database if it doesn't exist?
Public propertyEncryptionKey
A key to encrypt the database with. If the database does not exist and is being created, it will use this key, and the same key must be given every time it's opened. The default, null, means the database is not encrypted.
Public propertyReadOnly
Open database read-only?
Public propertyStorageType
The underlying storage engine to use. Legal values are SQLITE_STORAGE, FORESTDB_STORAGE, or null. * If the database is being created, the given storage engine will be used, or the default if the value is null. * If the database exists, and the value is not null, the database will be upgraded to that storage engine if possible. (SQLite-to-ForestDB upgrades are supported.)
Top
Fields
  NameDescription
Public fieldStatic memberFORESTDB_STORAGE Obsolete.
The identifier for ForestDB based storage
Public fieldStatic memberSQLITE_STORAGE Obsolete.
The identifier for SQLite based storage
Top
See Also