# javascript

Mike Dawson

09/27/2023, 4:47 PM
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 ( ).

Derek Ellis

09/27/2023, 4:54 PM
I've got it working with SQLDelight: 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.
👍 1

Mike Dawson

09/27/2023, 4:56 PM
Cool - I'm working on it for my multiplatform version of Room ( ) - 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