add swiftUI code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user