Database
A Couchbase Lite database.
Constructors
Types
Properties
Functions
Get all collections in the default scope.
Create a named collection in the default scope. If the collection already exists, the existing collection will be returned.
Create a named collection in the specified scope. If the collection already exists, the existing collection will be returned.
Create a SQL++ query.
Get the default collection.
Get the default scope.
Delete a collection by name in the default scope. If the collection doesn't exist, the operation will do nothing. Note: the default collection cannot be deleted.
Delete a collection by name in the specified scope. If the collection doesn't exist, the operation will do nothing. Note: the default collection cannot be deleted.
Get a collection in the default scope by name. If the collection doesn't exist, the function will return null.
Get a collection in the specified scope by name. If the collection doesn't exist, the function will return null.
Get all collections in the named scope.
Get a scope object by name. As the scope cannot exist by itself without having a collection, the null value will be returned if there are no collections under the given scope’s name. Note: The default scope is exceptional, and it will always be returned.
Runs a group of database operations in a batch. Use this when performing bulk write operations like multiple inserts/updates; it saves the overhead of multiple database commits, greatly improving performance.
Perform database maintenance.