Click or drag to resize

DatabaseFactory Class

A factory for creating IDatabase instances
Inheritance Hierarchy
SystemObject
  Couchbase.LiteDatabaseFactory

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
public static class DatabaseFactory

The DatabaseFactory type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate(String)
Creates an IDatabase instance with the given name. Internally it may be operating on the same underlying data as another instance.
Public methodStatic memberCreate(IDatabase)
Creates an IDatabase object using the source object as a model for creation.
Public methodStatic memberCreate(String, DatabaseOptions)
Creates an IDatabase instance with the given name and options. Internally it may be operating on the same underlying data as another instance.
Public methodStatic memberDatabaseExists
Checks if underlying data exists for a given database in the given directory. A null directory will check the library default directory for the platform
Public methodStatic memberDeleteDatabase
Deletes underlying data for a given database given the database name and directory (from Directory). Useful for deleting a database that cannot be otherwise opened (e.g. encryption key forgotten) but Delete is preferred. A null directory will check the library default directory for the platform.
Top
See Also