Statement

public struct Statement

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

  • sql

    The executed SQL, where bound parameters are not expanded.

    For example:

    UPDATE player SET score = ? WHERE id = ?
    

    Declaration

    Swift

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

    For example:

    UPDATE player SET score = 1000 WHERE id = 1
    

    Declaration

    Swift

    public var expandedSQL: String { get }