18 lines
812 B
Swift
18 lines
812 B
Swift
import GRDB
|
|
|
|
class DatabaseQueueBackupTests: BackupTestCase {
|
|
|
|
func testDatabaseWriterBackup() throws {
|
|
// SQLCipher can't backup encrypted databases: use a pristine Configuration
|
|
let source = try makeDatabaseQueue(filename: "source.sqlite", configuration: Configuration())
|
|
let destination = try makeDatabaseQueue(filename: "destination.sqlite", configuration: Configuration())
|
|
try testDatabaseWriterBackup(from: source, to: destination)
|
|
}
|
|
|
|
func testDatabaseBackup() throws {
|
|
let source = try makeDatabaseQueue(filename: "source.sqlite", configuration: Configuration())
|
|
let destination = try makeDatabaseQueue(filename: "destination.sqlite", configuration: Configuration())
|
|
try testDatabaseBackup(from: source, to: destination)
|
|
}
|
|
}
|