Class SQLCipherConnection
-
- All Implemented Interfaces:
-
androidx.sqlite.SQLiteConnection,java.lang.AutoCloseable
public class SQLCipherConnection implements SQLiteConnection
-
-
Constructor Summary
Constructors Constructor Description SQLCipherConnection(SQLiteDatabase database)
-
Method Summary
Modifier and Type Method Description SQLiteStatementprepare(@NonNull() String sql)Transform SQL string into SQLiteStatement. booleaninTransaction()voidchangePassword(Array<byte> newPassword)voidclose()-
-
Constructor Detail
-
SQLCipherConnection
SQLCipherConnection(SQLiteDatabase database)
-
-
Method Detail
-
prepare
@NonNull() SQLiteStatement prepare(@NonNull() String sql)
Transform SQL string into SQLiteStatement. We preprocess the SQL with the following rules: - When a journal mode is set, dispatch the operation, specifically when WAL is used we dispatch using the enableWriteAheadLogging which will reconfigure the underlying connection pool. - For all other statements, we return a default SQLCipherStatement for processing.
-
inTransaction
boolean inTransaction()
-
changePassword
void changePassword(Array<byte> newPassword)
-
close
void close()
-
-
-
-