query

abstract fun query(@Language(value = "sql") statement: String, vararg args: Any?): SQLiteStatement

Query (String)

Parse a query statement for execution; the resulting statement can be used multiple times, with intelligent caching for re-use.

Arguments provided at creation time are cached with the statement and merged with additional arguments provided at execution time.

See Query Arguments for more information on how to bind arguments to a prepared statement.

Return

Prepared statement object.

Parameters

statement

SQL query to prepare.

args

Arguments to bind to the statement.


abstract fun query(statement: SQLiteStatement, vararg args: Any?): SQLiteStatement

Query (Statement)

Parse a query statement for execution; the resulting statement can be used multiple times, with intelligent caching for re-use.

Arguments provided at creation time are cached with the statement and merged with additional arguments provided at execution time.

See Query Arguments for more information on how to bind arguments to a prepared statement.

Return

Prepared statement object.

Parameters

statement

SQL query to prepare.

args

Arguments to bind to the statement.