mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
... except in projects that use CocoaPods, because well the new Xcode project format is not supporteed
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)
|
|
}
|
|
}
|