query

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


fun query(distinct: Boolean, @TrustedSql table: String, @TrustedSql columns: Array<out String>, @TrustedSql selection: String, selectionArgs: Array<out Any?>, @TrustedSql groupBy: String?, @TrustedSql having: String?, @TrustedSql 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(@TrustedSql 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.