SupportSQLiteDatabase

public interface SupportSQLiteDatabase
implements Closeable

androidx.sqlite.db.SupportSQLiteDatabase


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

Summary

Public methods

abstract void beginTransaction()

Begins a transaction in EXCLUSIVE mode.

abstract void beginTransactionNonExclusive()

Begins a transaction in IMMEDIATE mode.

abstract void beginTransactionWithListener(SQLiteTransactionListener transactionListener)

Begins a transaction in EXCLUSIVE mode.

abstract void beginTransactionWithListenerNonExclusive(SQLiteTransactionListener transactionListener)

Begins a transaction in IMMEDIATE mode.

abstract SupportSQLiteStatement compileStatement(String sql)

Compiles the given SQL statement.

abstract int delete(String table, String whereClause, Object[] whereArgs)

Convenience method for deleting rows in the database.

abstract void disableWriteAheadLogging()

This method disables the features enabled by enableWriteAheadLogging().

abstract boolean enableWriteAheadLogging()

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

abstract void endTransaction()

End a transaction.

default void execPerConnectionSQL(String sql, Object[] bindArgs)

Execute the given SQL statement on all connections to this database.

abstract void execSQL(String sql, Object[] bindArgs)

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

abstract void execSQL(String sql)

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

abstract List<Pair<String, String>> getAttachedDbs()

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

abstract long getMaximumSize()

Returns the maximum size the database may grow to.

abstract long getPageSize()

Returns the current database page size, in bytes.

abstract String getPath()

Gets the path to the database file. </