createSnapshot

abstract fun createSnapshot(database: String? = null): Snapshot(source)

Records the current state of the given database and returns a Snapshot.

Throws

if a failure occurs while creating the snapshot.