androidjs icon indicating copy to clipboard operation
androidjs copied to clipboard

sqlite support

Open gaionaus opened this issue 4 years ago • 4 comments

Is there any example anywhere for sqlite db connection, usage with android js?

gaionaus avatar Apr 21 '21 17:04 gaionaus

I have one video where you can get some hint to build an app for reading and writing data in file. Video you can use any npm package in backend to read and write files.

DeveshPankaj avatar Apr 21 '21 17:04 DeveshPankaj

You can use AndroidJS IPC to pass data between back and front process.

DeveshPankaj avatar Apr 21 '21 18:04 DeveshPankaj

Thanks for your answer but I lost you ... I am asking for a simple example with database connection, not about how to write or read a file. Native android sqlite (or npm sqlite3) connection and query execution in android js. Because I cannot find any reference anywhere, and what i try does not work.

gaionaus avatar Apr 21 '21 18:04 gaionaus

for example if i try: npm install sqlite3 in the project's folder and then if i add in main.js const sqlite3 = require('sqlite3').verbose(); the app crashes...

Any specific sqlite usage recommendations would be much appreciated, or at least tell me if it is possible to use sqlite with android js?

gaionaus avatar Apr 21 '21 21:04 gaionaus