IXtdb

interface IXtdb : AutoCloseable

Properties

Link copied to clipboard
abstract val pgPort: Int

Returns the port of the Postgres wire server, if one is running.

Functions

Link copied to clipboard
open fun executeTx(vararg ops: TxOp.Sql): TransactionResult
abstract fun executeTx(txOpts: TxOptions, vararg ops: TxOp.Sql): 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.

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

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