User defined functions (not practical in this plugin)
brodybits opened this issue · comments
As described at https://www.sqlite.org/c3ref/create_function.html but with JavaScript binding. (FYI How to add user-defined function in case of builtin android.database, enabled by using the androidDatabaseImplementation: 2
setting in sqlitePlugin.openDatabase, is described at http://www.programering.com/a/MDO0ADMwATU.html, using SQLiteOpenHelper.)
Unfortunately it would be extremely difficult if not impossible to support this feature efficiently due to the asynchronous JavaScript-native bridge architecture used by Cordova (similar issue in case of react-native). A similar problem in case of asynchronous sqlite3 access on Node.js is noted in WiseLibs/better-sqlite3#89 (comment) and TryGhost/node-sqlite3#448.