PersistenceSuccess
The result of a successful record persistence (insert or update).
struct PersistenceSuccess
The result of a successful record persistence (insert or update).
struct PersistenceSuccess
import GRDB
A toolkit for SQLite databases, with a focus on application development
func willDelete(_ db: Database) throws
Persistence callback called before the record is deleted.
mutating func willInsert(_ db: Database) throws
Persistence callback called before the record is inserted.
func willSave(_ db: Database) throws
Persistence callback called before the record is updated or inserted.
func willUpdate(_ db: Database, columns: Set<String>) throws
Persistence callback called before the record is updated.
func didDelete(deleted: Bool)
Persistence callback called upon successful deletion.
mutating func didInsert(_ inserted: InsertionSuccess)
Persistence callback called upon successful insertion.
func didSave(_ saved: PersistenceSuccess)
Persistence callback called upon successful update or insertion.
func didUpdate(_ updated: PersistenceSuccess)
Persistence callback called upon successful update.
func aroundDelete(_ db: Database, delete: () throws -> Bool) throws
Persistence callback called around the destruction of the record.
func aroundInsert(_ db: Database, insert: () throws -> InsertionSuccess) throws
Persistence callback called around the record insertion.
func aroundSave(_ db: Database, save: () throws -> PersistenceSuccess) throws
Persistence callback called around the record update or insertion.
func aroundUpdate(_ db: Database, columns: Set<String>, update: () throws -> PersistenceSuccess) throws
Persistence callback called around the record update.
struct InsertionSuccess
The result of a successful record insertion.
var persistenceContainer: PersistenceContainer
The persistence container that was saved.