IXtdb

interface IXtdb : AutoCloseable

Functions

Link copied to clipboard
open fun executeTx(vararg ops: TxOp): TransactionResult
abstract fun executeTx(txOpts: TxOptions, vararg ops: TxOp): TransactionResult

Executes the transaction - this method will block until the receiving node has indexed the transaction.

Link copied to clipboard
abstract fun openQuery(sql: String, opts: QueryOptions = QueryOptions()): Stream<Map<String, *>>

Opens an SQL query - see the SQL documentation for more details on XTDB's SQL support.

abstract fun openQuery(xtql: XtqlQuery, opts: QueryOptions = QueryOptions()): Stream<Map<String, *>>

Opens an XTQL query - see XtqlQuery for more details on XTQL.

Link copied to clipboard
open fun submitTx(vararg ops: TxOp): TransactionKey
abstract fun submitTx(txOpts: TxOptions, vararg ops: TxOp): TransactionKey

Submits transactions to the log for processing - this method will block until the log has confirmed receipt of the transaction.