query

open override fun query(distinct: Boolean, table: String, columns: Array<out String>, selection: String, selectionArgs: Array<out Any?>, groupBy: String?, having: String?, orderBy: String?, limit: Int?): ICursor(source)
open override fun query(sql: String, selectionArgs: Array<out Any?>): ICursor(source)
open override fun query(query: ISQLQuery): ICursor(source)


fun query(distinct: Boolean, table: String, columns: Array<out String>, selection: String, selectionArgs: Array<out Any?>, groupBy: String?, having: String?, orderBy: String?, limit: Int?, cancellationSignal: CancellationSignal): ICursor(source)

Executes a cancellable query. If the cancellationSignal is cancelled from another thread, the query will be aborted at the earliest opportunity and an OperationCancelledException will be thrown.

Throws

if the operation was cancelled.


fun query(sql: String, selectionArgs: Array<out Any?>, cancellationSignal: CancellationSignal): ICursor(source)

Executes a cancellable query. If the cancellationSignal is cancelled from another thread, the query will be aborted at the earliest opportunity and an OperationCancelledException will be thrown.

Parameters

sql

the SQL query.

selectionArgs

arguments to bind.

cancellationSignal

signal to cancel the query.

Throws

if the operation was cancelled.


fun query(query: ISQLQuery, cancellationSignal: CancellationSignal): ICursor(source)

Executes a cancellable query. If the cancellationSignal is cancelled from another thread, the query will be aborted at the earliest opportunity and an OperationCancelledException will be thrown.

Parameters

query

the query to execute.

cancellationSignal

signal to cancel the query.

Throws

if the operation was cancelled.