Configuration

public struct Configuration

Configuration for a DatabaseQueue or DatabasePool.

  • If true, foreign key constraints are checked.

    Default: true

    Declaration

    Swift

    public var foreignKeysEnabled: Bool = true
  • If true, database modifications are disallowed.

    Default: false

    Declaration

    Swift

    public var readonly: Bool = false
  • A function that is called on every statement executed by the database.

    Default: nil

    Declaration

    Swift

    public var trace: TraceFunction?
  • The passphrase for encrypted database.

    Default: nil