SupportSQLiteQuery


interface SupportSQLiteQuery
Known direct subclasses

A query with typed bindings. It is better to use this API instead of android.database.sqlite.SQLiteDatabase.rawQuery because it allows binding type safe parameters.

Summary

Public functions

Unit

Callback to bind the query parameters to the compiled statement.

Public properties

Int

Is the number of arguments in this query.

String

The SQL query.

Public functions

bindTo

Added in 2.0.0
fun bindTo(statement: SupportSQLiteProgram): Unit

Callback to bind the query parameters to the compiled statement.

Public properties

argCount

Added in 2.0.0
val argCount: Int

Is the number of arguments in this query. This is equal to the number of placeholders in the query string. See: https://www.sqlite.org/c3ref/bind_blob.html for details.

sql

Added in 2.0.0
val sql: String

The SQL query. This query can have placeholders(?) for bind arguments.