Class
SQLDropTableBuilder
Builds
SQLDropTable queries.final class SQLDropTableBuilder
Topics
Initializers
init(_:on:)Create a newSQLDropTableBuilder.
Instance Properties
databaseConnection to execute query on.dropTableSQLDropTablequery being built.queryQuery being built.
Instance Methods
behavior(_:)The drop behavior clause specifies if objects that depend on a table should also be dropped or not when the table is dropped, for databases that support this.cascade()Adds aCASCADEclause to theDROP TABLEstatement instructing that objects that depend on this table should also be dropped.ifExists()The optionalIF EXISTSclause suppresses the error that would normally result if the table does not exist.restrict()Adds aRESTRICTclause to theDROP TABLEstatement instructing that if any objects depend on this table, the drop should be refused.temporary()If theTEMPORARYkeyword occurs betweenDROPandTABLE, then only temporary tables are dropped, and the drop does not cause an implicit transaction commit.
Relationships
Conforms To
See Also
Query Builders
SQLAlterEnumBuilderBuildsSQLAlterEnumqueries.SQLAlterTableBuilderBuildsSQLAlterTablequeries.SQLConflictUpdateBuilderA builder for specifying column updates and an optional predicate to be applied to rows that caused unique key conflicts during anINSERT.SQLCreateEnumBuilderBuildsSQLCreateEnumqueries.SQLCreateIndexBuilderBuildsSQLCreateIndexqueries.SQLCreateTableBuilderBuildsSQLCreateTablequeries.SQLCreateTriggerBuilderBuildsSQLCreateTriggerqueries.SQLDeleteBuilderBuildsSQLDeletequeries.SQLDropEnumBuilderBuildsSQLDropEnumqueries.SQLDropIndexBuilderBuildsSQLDropIndexqueries.SQLDropTriggerBuilderBuildsSQLDropTriggerqueries.SQLInsertBuilderBuildsSQLInsertqueries.SQLPredicateGroupBuilderNestedSQLPredicateBuilderfor building expression groups.SQLRawBuilderBuilds raw SQL queries.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.