Qt WebAssembly SQL alternatives
-
Hi,
As far as I know, still, there isn't official Qt WebAssembly sql module support, right?
In our current project, we are using Qt SQL module to handle SQLite databases for storing and retrieving data for our desktop application. After some discussions, we thought that it could be awesome to expand our application for web browsers compatibility by using Qt WebAssembly and we realized that using persistent storage like SQLite is a huge roadblock.
Does anyone know any experimental or open-source wasm projects supporting SQL? Any ideas with alternatives ways to replace SQLite and how to port our application in web using Qt WebAssembly with less effort as possible?
Thanks!
-
Hi
Yes.
Due to the sandbox nature,
I have not seen any WebAssem that could save the DB as local file , only in memory
which clearly won't fit your use case.However, it does seem possible to save to a array and and load from it.
If your db is not big, it might be usefulI wonder if it would be possible to save and load the DB with javascript and then access it from
c++ as in-mem db. However, I never tried it.