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 |
beginTransactionWithListener(transactionListener: SQLiteTransactionListener!) Begins a transaction in EXCLUSIVE mode. |
abstract Unit |
beginTransactionWithListenerNonExclusive(transactionListener: SQLiteTransactionListener!) Begins a transaction in IMMEDIATE mode. |
abstract SupportSQLiteStatement! |
compileStatement(sql: String!) Compiles the given SQL statement. |
abstract Int |
Convenience method for deleting rows in the database. |
abstract Unit |
This method disables the features enabled by |
abstract Boolean |
This method enables parallel execution of queries from multiple threads on the same database. |
abstract Unit |
End a transaction. |
abstract Unit |
Execute a single SQL statement that does not return any data. |
abstract Unit |
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! |
getPath() 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 |
isOpen() 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! |
Runs the given query on the database. |
abstract Cursor! |
Runs the given query on the database. |
abstract Cursor! |
query(query: SupportSQLiteQuery!) Runs the given query on the database. |
abstract Cursor! |
query(query: SupportSQLiteQuery!, cancellationSignal: CancellationSignal!) Runs the given query on the database. |
abstract Unit |
setForeignKeyConstraintsEnabled(enable: Boolean) Sets whether foreign key constraints are enabled for the database. |
abstract Unit |
setLocale(locale: |