Database Class |
Namespace: Couchbase.Lite
public sealed class Database : IDisposable
The Database type exposes the following members.
Name | Description | |
---|---|---|
![]() | Database(Database) |
Copy constructor
|
![]() | Database(String, DatabaseConfiguration) |
Creates a database given a name and some configuration
|
Name | Description | |
---|---|---|
![]() | Config |
Gets the configuration that were used to create the database
|
![]() | Count |
Gets the total number of documents in the database
|
![]() | Item |
Bracket operator for retrieving DocumentFragment objects
|
![]() | Name |
Gets the name of the database
|
![]() | Path |
Gets the path on disk where the database exists
|
Name | Description | |
---|---|---|
![]() | AddDocumentChangedListener |
Adds a listener for changes on a certain document (by ID). Similar to Changed
but requires a parameter to add so it is a method instead of an event.
|
![]() | Close |
Closes the database
|
![]() | Compact |
Performs a manual compaction of this database, removing old irrelevant data
and decreasing the size of the database file on disk
|
![]() | Contains |
Checks whether or not a given Document exists
in this database instance by searching for its ID.
|
![]() ![]() | Copy |
Copies a database from the given path to be used as the database with
the given name and configuration
|
![]() | CreateIndex |
Creates an index of the given type on the given path with the given configuration
|
![]() | Delete() |
Deletes the database
|
![]() | Delete(Document) |
Deletes the given Document from the database
|
![]() ![]() | Delete(String, String) |
Deletes the contents of a database with the given name in the
given directory
|
![]() | DeleteIndex |
Deletes the index with the given name
|
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() ![]() | Exists |
Returns whether or not a database with the given name
exists in the given directory
|
![]() | Finalize |
Finalizer
(Overrides Object.Finalize().) |
![]() | GetDocument |
Gets the Document with the specified ID
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetIndexes |
Gets a list of index names that are present in the database
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InBatch |
Runs the given batch of operations as an atomic unit
|
![]() | Purge |
Purges the given Document from the database. This leaves
no trace behind and will not be replicated
|
![]() | RemoveDocumentChangedListener |
Removes a listener for changes on a certain document (by ID). Similar to Changed
but requires a parameter to add so it is a method instead of an event.
|
![]() | Save |
Saves the given MutableDocument into this database
|
![]() | SetEncryptionKey |
Sets the encryption key for the database. If null, encryption is
removed.
|
![]() ![]() | SetLogLevel |
Sets the log level for the given domains(s)
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |