Enabling write-ahead logging and using BEGIN IMMEDIATE with SQLCipher on Android


#1

Hello,
Current sqlcipher library for android platform doesn’t support enableWriteAheadLogging() function.
Please help me use that function in android sqlcipher app.
I wanna build sqlcipher library with newer android java code supporting enableWriteAheadLogging() function.
Thanks


#2

Hi @petar_vasilev

SQLCipher for Android supports WAL mode, you can invoke this via the rawExecSQL function on your SQLiteConnection:

connection.rawExecSQL("PRAGMA journal_mode=WAL;");

#3

Thanks for your message.
But I can not implement all functions with raw query execution.
So I just need to build sqlcipher library supporting enableWriteAheadLogging() function.
Please help me.


#4

Hello @petar_vasilev

If your organization is interested in licensing a custom build of SQLCipher for Android, please feel free to reach out to us at support@zetetic.net. Thanks!


SQLCipher for Android, Room, and API Level 16