SimpleSQLiteQuery
-
android
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. |
android
|
Public constructors |
|
|---|---|
SimpleSQLiteQuery(query: String)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 |
bindTo(statement: SupportSQLiteProgram)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.
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. |