Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User defined functions (not practical in this plugin) #741

Open
brodycj opened this issue Jan 17, 2018 · 1 comment
Open

User defined functions (not practical in this plugin) #741

brodycj opened this issue Jan 17, 2018 · 1 comment

Comments

@brodycj
Copy link
Contributor

brodycj commented Jan 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant