Skip to content

Class

SQLDropTriggerBuilder

Builds SQLDropTrigger queries.
final class SQLDropTriggerBuilder

Topics

Initializers

Instance Properties

Instance Methods

  • func behavior(SQLDropBehavior) -> Self
    The 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() -> Self
    Adds a CASCADE clause to the DROP TRIGGER statement instructing that objects that depend on this trigger should also be dropped.
  • func ifExists() -> Self
    The optional IF EXISTS clause suppresses the error that would normally result if the table does not exist.
  • func restrict() -> Self
    Adds a RESTRICT clause to the DROP TRIGGER statement 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