The Android Developer Challenge is back! Submit your idea before December 2.

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

<init>(query: String!, @Nullable bindArgs: Array<Any!>?)

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

<init>(query: String!)

Creates an SQL query without any bind arguments.

Public methods

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

Binds the given arguments into the given sqlite statement.

Unit

Int

String!

Public constructors

<init>

SimpleSQLiteQuery(query: String!, @Nullable 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

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

bindTo

fun bindTo(statement: SupportSQLiteProgram!): Unit

getArgCount

fun getArgCount(): Int

getSql

fun getSql(): String!