Instance Propertygrdb 7.4.0GRDB
originRowID
The rowid of the row that contains the foreign key violation.
var originRowID: Int64?
If it nil if the origin table is a WITHOUT ROWID
table.
The rowid of the row that contains the foreign key violation.
var originRowID: Int64?
If it nil if the origin table is a WITHOUT ROWID
table.
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct ForeignKeyViolation
A foreign key violation.
@frozen struct Int64
A 64-bit signed integer value type.
init(row: Row)
var description: String { get }
A description of the foreign key violation.
var destinationTable: String
The name of the table that is referred to.
var foreignKeyId: Int
The id of the foreign key constraint that failed.
var originTable: String
The name of the table that contains the foreign key.
func databaseError(_ db: Database) -> DatabaseError
Converts the violation into a DatabaseError
.
func failureDescription(_ db: Database) throws -> String
A precise description of the foreign key violation.