# StatementContext

class StatementContext(val statement: Statement<*>, val args: Iterable<Pair<IColumnType<*>, Any?>>)

Holds information related to a particular statement and the args needed to prepare it for execution.

## Constructors

StatementContext
Link copied to clipboard
constructor(statement: Statement<*>, args: Iterable<Pair<IColumnType<*>, Any?>>)

## Properties

args
Link copied to clipboard
val args: Iterable<Pair<IColumnType<*>, Any?>>
statement
Link copied to clipboard
val statement: Statement<*>

## Functions

expandArgs
Link copied to clipboard
fun StatementContext.expandArgs(transaction: Transaction): String

Returns the string representation of this context's Statement with its argument values included directly instead of parameter placeholders.

sql
Link copied to clipboard
fun sql(transaction: Transaction): String

Returns the string representation of the SQL statement associated with this StatementContext.