-
Notifications
You must be signed in to change notification settings - Fork 8
SublimateSchemaBuilder
mxcl edited this page Oct 23, 2020
·
4 revisions
public final class SublimateSchemaBuilder
let sb: SchemaBuilder
@inlinable public func id() -> Self
@inlinable public func field(_ key: FieldKey, _ dataType: DatabaseSchema.DataType, _ constraints: DatabaseSchema.FieldConstraint) -> Self
@inlinable public func field(_ field: DatabaseSchema.FieldDefinition) -> Self
@inlinable public func unique(on fields: FieldKey, name: String? = nil) -> Self
@inlinable public func constraint(_ constraint: DatabaseSchema.Constraint) -> Self
@inlinable public func deleteUnique(on fields: FieldKey) -> Self
@inlinable public func deleteConstraint(name: String) -> Self
@inlinable public func foreignKey(_ field: FieldKey, references foreignSchema: String, _ foreignField: FieldKey, onDelete: DatabaseSchema.ForeignKeyAction = .noAction, onUpdate: DatabaseSchema.ForeignKeyAction = .noAction, name: String? = nil) -> Self
@inlinable public func updateField(_ key: FieldKey, _ dataType: DatabaseSchema.DataType) -> Self
@inlinable public func updateField(_ field: DatabaseSchema.FieldUpdate) -> Self
@inlinable public func deleteField(_ name: FieldKey) -> Self
@inlinable public func deleteField(_ name: DatabaseSchema.FieldName) -> Self
@inlinable public func ignoreExisting() -> Self
@inlinable public func create() throws
@inlinable public func update() throws
@inlinable public func delete() throws
Generated at 2020-12-15T20:31:16+0000 using swift-doc 1.0.0-beta.5.