openQuery
abstract fun openQuery(xtql: XtqlQuery, opts: QueryOptions = QueryOptions()): Stream<Map<String, *>>
Opens an XTQL query - see XtqlQuery for more details on XTQL.
By default, this method will block indefinitely until the node has indexed the requested transaction, or you can specify a timeout.
Return
the results stream. This result stream MUST be explicitly closed when no longer required.
Parameters
xtql
the XTQL query
opts
query options
Opens an SQL query - see the SQL documentation for more details on XTDB's SQL support.
By default, this method will block indefinitely until the node has indexed the requested transaction, or you can specify a timeout.
Return
the results stream. This result stream MUST be explicitly closed when no longer required.
Parameters
sql
the SQL query
opts
query options