/android-sqlite-extension

Various sqlite3 extension for Android (NOT FOR BUILTIN SQLITE)

Primary LanguageC

SQLite3 Extension for Android

HOW TO USE?

Please use Native SQLite Library https://github.com/requery/sqlite-android, there is alot addtional function. DONT USE BUILTIN SQLITE

SQLiteDatabaseConfiguration cfg=new SQLiteDatabaseConfiguration(DB_FILE, SQLiteDatabase.OPEN_READONLY);
// SQLiteDatabaseConfiguration cfg=new SQLiteDatabaseConfiguration("/sdcard/mydata.db", SQLiteDatabase.OPEN_READONLY);
SQLiteCustomExtension myext=new SQLiteCustomExtension(EXT_PATH, null);
// SQLiteCustomExtension myext=new SQLiteCustomExtension("/path/to/myext/myext.so", null);
cfg.customExtensions.add(myext);
SQLiteDatabase db=SQLiteDatabase.openDatabase(cfg, null, null);
// db.rawQuery("SELECT myextfunction(xx);")

Done, now you can use sql function from your extension.

Build using NDK with https://github.com/sjitech/android-gcc-toolchain helper on ubuntu AWS Compute Cloud

Credits: