SupportSQLiteConnection



A SQLiteConnection implemented by androidx.sqlite.db.SupportSQLiteDatabase and that uses the Android's SQLite through the SupportSQLite APIs.

Summary

Public constructors

android

Public functions

open Unit

Closes the database connection.

android
open Boolean

Returns true if the connection has an active transaction, false otherwise.

android
open SQLiteStatement

Prepares a new SQL statement.

android

Public properties

SupportSQLiteDatabase
android

Public constructors

SupportSQLiteConnection

SupportSQLiteConnection(db: SupportSQLiteDatabase)

Public functions

close

open fun close(): Unit

Closes the database connection.

Once a connection is closed it should no longer be used. Calling this function on an already closed database connection is a no-op.

inTransaction

open fun inTransaction(): Boolean

Returns true if the connection has an active transaction, false otherwise.

prepare

open fun prepare(sql: String): SQLiteStatement

Prepares a new SQL statement.

See also Compiling a SQL statement

Parameters
sql: String

the SQL statement to prepare

Returns
SQLiteStatement

the prepared statement.

Public properties

db

val dbSupportSQLiteDatabase