mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
27 lines
1.2 KiB
Swift
27 lines
1.2 KiB
Swift
#if GRDBCIPHER
|
|
import GRDBCipher
|
|
#elseif GRDBCUSTOMSQLITE
|
|
import GRDBCustomSQLite
|
|
#else
|
|
import GRDB
|
|
#endif
|
|
|
|
// This file contains types that subclass GRBD open classes. Test pass if this
|
|
// file compiles without any error.
|
|
|
|
// MARK: - Record
|
|
|
|
private class UserRecord : Record {
|
|
override init() { super.init() }
|
|
required init(row: Row) { super.init(row: row) }
|
|
override class var databaseTableName: String { return super.databaseTableName }
|
|
override class var persistenceConflictPolicy: PersistenceConflictPolicy { return super.persistenceConflictPolicy }
|
|
override class var databaseSelection: [SQLSelectable] { return super.databaseSelection }
|
|
override func encode(to container: inout PersistenceContainer) { super.encode(to: &container) }
|
|
override func didInsert(with rowID: Int64, for column: String?) { super.didInsert(with: rowID, for: column) }
|
|
override func copy() -> Self { preconditionFailure() }
|
|
override func insert(_ db: Database) throws { try super.insert(db) }
|
|
override func update(_ db: Database, columns: Set<String>) throws { try super.update(db, columns: columns) }
|
|
override func delete(_ db: Database) throws -> Bool { return try super.delete(db) }
|
|
}
|