Class
SQLDropTriggerBuilder
Builds
SQLDropTrigger queries.final class SQLDropTriggerBuilder
Topics
Initializers
Instance Properties
var database: any SQLDatabaseConnection to execute query on.var dropTrigger: SQLDropTriggerSQLDropTriggerquery being built.var query: any SQLExpressionQuery being built.
Instance Methods
func behavior(SQLDropBehavior) -> SelfThe drop behavior clause specifies if objects that depend on a trigger should also be dropped or not when the trigger is dropped, for databases that support this.func cascade() -> SelfAdds aCASCADEclause to theDROP TRIGGERstatement instructing that objects that depend on this trigger should also be dropped.func ifExists() -> SelfThe optionalIF EXISTSclause suppresses the error that would normally result if the table does not exist.func restrict() -> SelfAdds aRESTRICTclause to theDROP TRIGGERstatement instructing that if any objects depend on this trigger, the drop should be refused.func table(_:)Specify an associated table that owns the trigger to drop, for dialects that require it.
Relationships
Conforms To
See Also
Query Builders
class SQLAlterEnumBuilderBuildsSQLAlterEnumqueries.class SQLAlterTableBuilderBuildsSQLAlterTablequeries.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 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.