Classgrdb 7.3.0GRDB
ForeignKeyDefinition
Describes an association in the database schema.
final class ForeignKeyDefinition
You get instances of ForeignKeyDefinition
when you create a database tables. For example:
try db.create(table: "player") { t in
t.belongsTo("team") // ForeignKeyDefinition
}
See belongsTo(_:inTable:onDelete:onUpdate:deferred:indexed:)
.