Database class

Properties

count Future<int>
read-only
name String
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() Future<void>
Closes database.
deleteDocument(String id) Future<void>
Deletes document with id from the database.
documentWithId(String id) Future<Document>
Gets a Document object with the given id
saveDocument(Document doc) Future<String>
Saves doc to the database with the document id set by the database.
saveDocumentWithId(String id, Document doc) Future<String>
Saves doc to the database with the Document id set to id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

deleteWithName(String dbName) Future<void>
Deletes a database of the given dbName.
initWithName(String dbName) Future<Database>
Initializes a Couchbase Lite database with the given dbName.