exportDatabase

suspend fun exportDatabase(name: String, timeout: Duration? = null): DatabaseBundle(source)

Snapshot the database and existing WAL/journal, at most 64 MiB total; never discard WAL.