TraceEvent
public enum TraceEvent : CustomStringConvertible
An event reported by Database.trace(options:_:)
-
Information about a statement reported by
See moreDatabase.trace(options:_:)
Declaration
Swift
public struct Statement : CustomStringConvertible
-
An event reported by
TracingOptions.statement
.Declaration
Swift
case statement(Statement)
-
An event reported by
TracingOptions.profile
.Declaration
Swift
case profile(statement: Statement, duration: TimeInterval)
-
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.
Declaration
Swift
public var description: String { get }
-
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.Declaration
Swift
public var expandedDescription: String { get }