SimpleSQLiteQuery
class SimpleSQLiteQuery : SupportSQLiteQuery
kotlin.Any | |
↳ | androidx.sqlite.db.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 constructors | |
---|---|
Creates an SQL query with the sql string and the bind arguments. |
|
Creates an SQL query without any bind arguments. |
Public methods | |
---|---|
Unit |
bindTo(statement: SupportSQLiteProgram!) |
Int | |
String! |
getSql() |
static Unit |
bind(statement: SupportSQLiteProgram!, bindArgs: Array<Any!>!) Binds the given arguments into the given sqlite statement. |
Public constructors
<init>
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 |
String!: The bind argument value that will replace the placeholders in the query. |
<init>
SimpleSQLiteQuery(query: String!)
Creates an SQL query without any bind arguments.
Parameters | |
---|---|
query |
String!: The SQL query to execute. Cannot include bind parameters. |
Public methods
bindTo
fun bindTo(statement: SupportSQLiteProgram!): Unit
getArgCount
fun getArgCount(): Int
getSql
fun getSql(): String!
bind
static fun bind(statement: SupportSQLiteProgram!, bindArgs: Array<Any!>!): Unit
Binds the given arguments into the given sqlite statement.
Parameters | |
---|---|
statement |
SupportSQLiteProgram!: The sqlite statement |
bindArgs |
SupportSQLiteProgram!: The list of bind arguments |
Interfaces
Classes