CapturedStatement

data class CapturedStatement(val cql: String, val values: List<Any?>)

A captured statement as seen by a test: the CQL text and the positional values bound to it.

Returned by FakeKandraSession.capturedStatementViews / FakeKandraSession.capturedBatchViews. values holds the bound value verbatim at each position (no CQL type encoding happens in the fake); FakeUnset marks a position that was never bound or was explicitly unset, as opposed to Kotlin null, which is a real CQL null bind.

Constructors

Link copied to clipboard
constructor(cql: String, values: List<Any?>)

Properties

Link copied to clipboard
val cql: String
Link copied to clipboard
val values: List<Any?>

Functions

Link copied to clipboard
fun isUnset(index: Int): Boolean

True if position index was never bound or was explicitly unset (no tombstone), as opposed to bound to null.