Statement

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 = ?
    
  • 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.