Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

SupportSQLiteDatabase

interface SupportSQLiteDatabase : Closeable
androidx.sqlite.db.SupportSQLiteDatabase

A database abstraction which removes the framework dependency and allows swapping underlying sql versions. It mimics the behavior of android.database.sqlite.SQLiteDatabase

Summary

Public methods
abstract Unit

Begins a transaction in EXCLUSIVE mode.

abstract Unit

Begins a transaction in IMMEDIATE mode.

abstract Unit

Begins a transaction in EXCLUSIVE mode.

abstract Unit

Begins a transaction in IMMEDIATE mode.

abstract SupportSQLiteStatement!

Compiles the given SQL statement.

abstract Int
delete(table: String!, whereClause: String!, whereArgs: Array<Any!>!)

Convenience method for deleting rows in the database.

abstract Unit

This method disables the features enabled by enableWriteAheadLogging().

abstract Boolean

This method enables parallel execution of queries from multiple threads on the same database.

abstract Unit

End a transaction.

abstract Unit
execSQL(sql: String!)

Execute a single SQL statement that does not return any data.

abstract Unit
execSQL(sql: String!, bindArgs: Array<Any!>!)

Execute a single SQL statement that does not return any data.

abstract MutableList<Pair<String!, String!>!>!

Returns list of full path names of all attached databases including the main database by executing 'pragma database_list' on the database.

abstract Long

Returns the maximum size the database may grow to.

abstract Long

Returns the current database page size, in bytes.

abstract String!

Gets the path to the database file.

abstract Int

Gets the database version.

abstract Boolean

Returns true if the current thread has a transaction pending.

abstract Long
insert(table: String!, conflictAlgorithm: Int, values: ContentValues!)

Convenience method for inserting a row into the database.

abstract Boolean

Runs 'pragma integrity_check' on the given database (and all the attached databases) and returns true if the given database (and all its attached databases) pass integrity_check, false otherwise.

abstract Boolean

Returns true if the current thread is holding an active connection to the database.

abstract Boolean

Returns true if the database is currently open.

abstract Boolean

Returns true if the database is opened as read only.

abstract Boolean

Returns true if write-ahead logging has been enabled for this database.

abstract Boolean
needUpgrade(newVersion: Int)

Returns true if the new version code is greater than the current database version.

abstract Cursor!
query(query: String!)

Runs the given query on the database.

abstract Cursor!
query(query: String!, bindArgs: Array<Any!>!)

Runs the given query on the database.

abstract Cursor!

Runs the given query on the database.

abstract Cursor!
query(query: SupportSQLiteQuery!, cancellationSignal: CancellationSignal!)

Runs the given query on the database.

abstract Unit

Sets whether foreign key constraints are enabled for the database.

abstract Unit
setLocale(locale: