Click or drag to resize

DatabaseCompact Method

Compacts the database file by deleting unused attachment files and vacuuming the SQLite database

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.1.0-b0232
Syntax
C#
public void Compact()
Exceptions
ExceptionCondition
CouchbaseExceptionThrown if an error condition is returned from LiteCore
InvalidOperationExceptionThrown if this method is called after the database is closed
See Also