SimpleSQLiteQuery



A basic implementation of SupportSQLiteQuery which receives a query and its args and binds args based on the passed in Object type.

Summary

Public companion functions

Unit
bind(statement: SupportSQLiteProgram, bindArgs: Array<Any?>?)

Binds the given arguments into the given sqlite statement.

android

Public constructors

Creates an SQL query without any bind arguments.

android
SimpleSQLiteQuery(query: String, bindArgs: Array<Any?>?)

Creates an SQL query with the sql string and the bind arguments.

android

Public functions

open Unit

Creates an SQL query without any bind arguments.

android

Public properties

open Int

Is the number of arguments in this query.

android
open String

The SQL query.

android

Public companion functions

bind

fun bind(statement: SupportSQLiteProgram, bindArgs: Array<Any?>?): Unit

Binds the given arguments into the given sqlite statement.

Parameters
statement: SupportSQLiteProgram

The sqlite statement

bindArgs: Array<Any?>?

The list of bind arguments

Public constructors

SimpleSQLiteQuery

SimpleSQLiteQuery(query: String)

Creates an SQL query without any bind arguments.

Parameters
query: String

The SQL query to execute. Cannot include bind parameters.

SimpleSQLiteQuery

SimpleSQLiteQuery(query: String, bindArgs: Array<Any?>?)

Creates an SQL query with the sql string and the bind arguments.

Parameters
query: String

The query string, can include bind arguments (.e.g ?).

bindArgs: Array<Any?>?

The bind argument value that will replace the placeholders in the query.

Public functions

bindTo

open fun bindTo(statement: SupportSQLiteProgram): Unit

Creates an SQL query without any bind arguments.

Parameters
statement: SupportSQLiteProgram

The SQL query to execute. Cannot include bind parameters.

Public properties

argCount

open val argCountInt

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

open val sqlString

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