SimpleSQLiteQuery

class SimpleSQLiteQuery : SupportSQLiteQuery


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.

Public constructors

Creates an SQL query without any bind arguments.

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

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

Public functions

open Unit

Creates an SQL query without any bind arguments.

Public properties

open Int

Is the number of arguments in this query.

open String

The SQL query.

Public companion functions

bind

Added in 2.3.0
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

Added in 2.0.0
SimpleSQLiteQuery(query: String)

Creates an SQL query without any bind arguments.

Parameters
query: String

The SQL query to execute. Cannot include bind parameters.

SimpleSQLiteQuery

Added in 2.0.0
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

Added in 2.4.0
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

Added in 2.4.0
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

Added in 2.4.0
open val sqlString

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