Statement

public struct Statement : CustomStringConvertible

Information about a statement reported by Database.trace(options:_:)

  • sql

    The executed SQL, where bound parameters are not expanded.

    For example:

    SELECT * FROM player WHERE email = ?
    

    Declaration

    Swift

    public var sql: String { get }
  • The executed SQL, where bound parameters are expanded.

    For example:

    SELECT * FROM player WHERE email = 'arthur@example.com'
    

    Warning

    It is your responsibility to prevent sensitive information from leaking in unexpected locations, so use this property with care.

    Declaration

    Swift

    public var expandedSQL: String { get }
  • Declaration

    Swift

    public var description: String { get }