Ola
I need a wizard please *no pun intended.
Lets say you have a SQLite db, you want to access this thing from a webapp (no websockets/no server), it should be embedded inside your web app. One approach is to convert this thing into a js file including the CREATE scripts, data etc and perhaps minify this nicely and then when your app starts, checks if the db exists, if not create it and then add the records if any and then open it.
So, if you think you can advise or have something existing please hola at me.
1. A B4J code snippet to convert the sqlite db to a js file in rather WebSQL / IndexedDB . This js file can then be added as part of my index.html script file.
2. A js snippet to get the db object, see if either a WebSQL/IndexedDB already exists or not, if not create it and then add the records. It can have an option to recreate the WebSQL/IndexedDB
Thanks...
#ListeningOnTheRadio
I need a wizard please *no pun intended.
Lets say you have a SQLite db, you want to access this thing from a webapp (no websockets/no server), it should be embedded inside your web app. One approach is to convert this thing into a js file including the CREATE scripts, data etc and perhaps minify this nicely and then when your app starts, checks if the db exists, if not create it and then add the records if any and then open it.
So, if you think you can advise or have something existing please hola at me.
1. A B4J code snippet to convert the sqlite db to a js file in rather WebSQL / IndexedDB . This js file can then be added as part of my index.html script file.
2. A js snippet to get the db object, see if either a WebSQL/IndexedDB already exists or not, if not create it and then add the records. It can have an option to recreate the WebSQL/IndexedDB
Thanks...
#ListeningOnTheRadio
Last edited: