IXtdb

interface IXtdb : AutoCloseable

Functions

Link copied to clipboard
open 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.

open 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
abstract fun openQueryAsync(sql: String, opts: QueryOptions = QueryOptions()): CompletableFuture<Stream<Map<String, *>>>

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

abstract fun openQueryAsync(xtql: XtqlQuery, opts: QueryOptions = QueryOptions()): CompletableFuture<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
open fun submitTx(txOpts: TxOptions, vararg ops: TxOp): TransactionKey

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

Link copied to clipboard
abstract fun submitTxAsync(txOpts: TxOptions, vararg ops: TxOp): CompletableFuture<TransactionKey>

Asynchronously submits transactions to the log for processing - this method will return immediately without waiting for the log to confirm receipt of the transaction.