Class
SQLAlterTableBuilder
Builds
SQLAlterTable queries.final class SQLAlterTableBuilder
Topics
Initializers
Instance Properties
var alterTable: SQLAlterTableSQLAlterTablequery being built.var columns: [any SQLExpression]The set of column alteration expressions.var database: any SQLDatabaseConnection to execute query on.var query: any SQLExpressionQuery being built.
Instance Methods
func addColumn(any SQLExpression) -> SelfAdd a new column to the table.func column(_:type:_:)Add a new column to the table.func dropColumn(_:)Drop an existing column from the table.func modifyColumn(any SQLExpression) -> SelfAlter an existing column.func modifyColumn(_:type:_:)Change an existing column’s type and constraints.func rename(to:)Rename the table.func update(column:type:)Change an existing column’s type.
Relationships
Conforms To
See Also
Query Builders
class SQLAlterEnumBuilderBuildsSQLAlterEnumqueries.class SQLConflictUpdateBuilderA builder for specifying column updates and an optional predicate to be applied to rows that caused unique key conflicts during anINSERT.class SQLCreateEnumBuilderBuildsSQLCreateEnumqueries.class SQLCreateIndexBuilderBuildsSQLCreateIndexqueries.class SQLCreateTableBuilderBuildsSQLCreateTablequeries.class SQLCreateTriggerBuilderBuildsSQLCreateTriggerqueries.class SQLDeleteBuilderBuildsSQLDeletequeries.class SQLDropEnumBuilderBuildsSQLDropEnumqueries.class SQLDropIndexBuilderBuildsSQLDropIndexqueries.class SQLDropTableBuilderBuildsSQLDropTablequeries.class SQLDropTriggerBuilderBuildsSQLDropTriggerqueries.class SQLInsertBuilderBuildsSQLInsertqueries.class SQLPredicateGroupBuilderNestedSQLPredicateBuilderfor building expression groups.class SQLRawBuilderBuilds raw SQL queries.class SQLReturningResultBuilderA builder returned from the methods ofSQLReturningBuilder; this builder wraps the original builder with one which providesSQLQueryFetcherconformance. As such, thereturning(_:)methods must always be the last ones in any call chain.