agusibrahim / android-sqlite-extension

Various sqlite3 extension for Android (NOT FOR BUILTIN SQLITE)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

Various sqlite3 extension for Android (NOT FOR BUILTIN SQLITE)


Languages

Language:C 50.4%Language:Objective-C 49.3%Language:C++ 0.2%Language:Shell 0.1%