QueryContext
data class QueryContext(val sql: String, val parameters: Map<String, Any?>, val dbSql: String? = null, val dbParameters: List<Any?>? = null)
Context of a database operation execution.
Contains all the information needed to reproduce or debug a failed query, including both the high-level query and the low-level SQL sent to the database.
Attached to an OctaviusException as it propagates out of a query, and rendered into its toString. The two levels differ only for a named query, where the statement is rewritten before it is sent; for a native query they are the same text.