Skip to content

Instance Property

supportsIfExists

true if the dialect supports the IF EXISTS modifier for all types of DROP queries (such as SQLDropEnum, SQLDropIndex, SQLDropTable, and SQLDropTrigger) and the IF NOT EXISTS modifier for SQLCreateTable queries.
var supportsIfExists: Bool { get }

Discussion

It is not possible to indicate partial support at this time.

Defaults to true.

Default Implementations

SQLDialect Implementations

See Also

Support Flags

  • supportsAutoIncrement
    true if the dialect supports auto-increment for primary key values when inserting new rows, false if not.
  • supportsDropBehavior
    true if the dialect supports the behavior modifiers for DROPqueries,false` if not.
  • supportsReturning
    true if the dialect supports RETURNING syntax for retrieving output values from DML queries (INSERT, UPDATE, DELETE).
  • unionFeatures
    A set of feature flags describing the dialect’s support for various forms of UNION with SELECT queries.