Class
SchemaBuilder
final class SchemaBuilder
Topics
Instance Properties
Instance Methods
func compositeIdentifier(over: FieldKey...) -> Selffunc constraint(DatabaseSchema.Constraint) -> Selffunc create()func delete()func deleteConstraint(DatabaseSchema.ConstraintDelete) -> Selffunc deleteConstraint(name: String) -> Selffunc deleteField(_:)func deleteForeignKey(name: String) -> SelfDelete a FOREIGN KEY constraint with the given name.func deleteUnique(on: FieldKey...) -> Selffunc field(DatabaseSchema.FieldDefinition) -> Selffunc field(FieldKey, DatabaseSchema.DataType, DatabaseSchema.FieldConstraint...) -> Selffunc foreignKey(_:references:inSpace:_:onDelete:onUpdate:name:)func id() -> Selffunc ignoreExisting() -> Selffunc unique(on: FieldKey..., name: String?) -> Selffunc update()func updateField(DatabaseSchema.FieldUpdate) -> Selffunc updateField(FieldKey, DatabaseSchema.DataType) -> Self