openQuery

fun openQuery(sql: String, args: RelationReader? = null, opts: OpenTx.QueryOpts = QueryOpts()): ResultCursor

Run SQL against the database's live index, with visibility into writes made earlier in this transaction.

Positional ? parameters are supplied through args as a single-row xtdb.arrow.RelationReader. Defaults for opts are derived from the tx's system-time and the database's default timezone.