TraceEvent

An event reported by Database.trace(options:_:)

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

    See more
  • An event reported by TracingOptions.statement.

  • An event reported by TracingOptions.profile.

  • The trace event description.

    For example:

    SELECT * FROM player WHERE email = ?
    0.1s SELECT * FROM player WHERE email = ?
    

    The format of the event description may change between GRDB releases, without notice: don’t have your application rely on any specific format.

  • The trace event description, where bound parameters are expanded.

    For example:

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

    The format of the event description may change between GRDB releases, without notice: don’t have your application rely on any specific format.

    Warning

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