Skip to content

Class

SQLDropTableBuilder

Builds SQLDropTable queries.
final class SQLDropTableBuilder

Topics

Initializers

Instance Properties

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 a CASCADE clause to the DROP TABLE statement instructing that objects that depend on this table should also be dropped.
  • ifExists()
    The optional IF EXISTS clause suppresses the error that would normally result if the table does not exist.
  • restrict()
    Adds a RESTRICT clause to the DROP TABLE statement instructing that if any objects depend on this table, the drop should be refused.
  • temporary()
    If the TEMPORARY keyword occurs between DROP and TABLE, then only temporary tables are dropped, and the drop does not cause an implicit transaction commit.

Relationships

Conforms To

See Also

Query Builders