DatabaseBackupOperations

What the settings screen needs from a database backup, so a test can stand in for the file-backed service.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun backupTargetName(): String?

The device database to act on: the active one, or the last device's when none is selected. Null when no device database exists. Capture it before anything switches databases.

Link copied to clipboard
abstract suspend fun export(dbName: String, sink: BufferedSink): Long
Link copied to clipboard
abstract suspend fun stageRestore(dbName: String, source: BufferedSource): RestoreStageResult