Has anyone tried wrapping/working with the new official SQLite-wasm module? I was using SQLite.js before, but it seems like there is a new official SQLite wasm module ( https://sqlite.org/wasm/doc/trunk/index.md ).
09/27/2023, 4:54 PM
I've got it working with SQLDelight: https://github.com/dellisd/sqldelight-sqlite-wasm
The tricky thing is that SQLite wasm can only be used in a web worker if you want to use any of the persistence options. Writing Kotlin/JS for a worker isn't the easiest thing to do.
09/27/2023, 4:56 PM
Cool - I'm working on it for my multiplatform version of Room ( https://www.github.com/UstadMobile/door/ ) - I was using the SQLite.js worker and I was able to wrap around onMessage using coroutines, that seemed to work pretty well
I see there is a "promiser" which looks interesting which I'm trying to wrap now