packDatabase

Packs the existing database file into a minimal amount of disk space.

This operation has a performance impact as it will vacuum the database, forcing it to move pages on the filesystem.

When the operation is complete or encounters an error, the given callback will be executed on the database thread; it is the responsibility of the SDK bindings to re-execute a user-provided callback on the main thread.

Parameters

callback

the callback to be invoked when the database was reset or when the operation erred.