Click or drag to resize

Manager Class

The top-level object that manages Couchbase Lite Databases.
Inheritance Hierarchy
SystemObject
  Couchbase.LiteManager

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

The Manager type exposes the following members.

Constructors
  NameDescription
Public methodManager
Initializes a Manager that stores Databases in the default directory.
Public methodManager(DirectoryInfo, ManagerOptions)
Initializes a Manager that stores Databases in the given directory.
Top
Properties
  NameDescription
Public propertyAllDatabaseNames
Gets the names of all existing Databases.
Public propertyStatic memberDefaultOptions
Gets the default options for creating a manager
Public propertyDirectory
Gets the directory where the Manager stores Database.
Public propertyStatic memberSharedInstance
Gets a shared, per-process, instance of Manager.
Public propertyStorageType
Default storage type for newly created databases. There are two options, StorageEngineTypes.SQLite (the default) or StorageEngineTypes.ForestDB.
Top
Methods
  NameDescription
Public methodAllOpenDatabases
Returns all the databases that are open by this manager.
Public methodClose
Releases all resources used by the Manager and closes all its Databases.
Public methodDeleteDatabase
Deletes a database that can no longer be opened by other means (lost password, etc). Note: will only work for databases created with version 1.2 or later.
Public methodForgetDatabase
Removes the given database from the manager, along with any associated replications
Public methodGetDatabase
Returns the Database with the given name. If the Database does not already exist, it is created.
Public methodGetExistingDatabase
Returns the Database with the given name if it exists, otherwise null.
Public methodStatic memberIsValidDatabaseName
Determines if the given name is a valid Database name. Only the following characters are valid: abcdefghijklmnopqrstuvwxyz0123456789_$()+-/
Public methodOpenDatabase
Returns the database with the given name. If the database is not yet open, the options given will be applied; if it's already open, the options are ignored. Multiple calls with the same name will return the same CBLDatabase instance.
Public methodRegisterEncryptionKey Obsolete.
Registers an encryption key for use when a given database is requested via GetDatabase
Public methodReplaceDatabase(String, Stream, Boolean)
Replaces or installs a database from a zipped DB folder structure
Public methodReplaceDatabase(String, Stream, IDictionaryString, Stream) Obsolete.
Replaces or installs a database from a file.
Public methodToString (Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberVersionString
The version of Couchbase Lite that is running
Top
See Also