Issue with SqliteClient
csquillen opened this issue · 4 comments
I'm having trouble getting the SqliteClient working. I'm getting an error when calling sqlite.executeSql(). While troubleshooting, I'm finding that the promise returned from the sqlite.init() method is not resolving or erroring. Any help will be greatly appreciated.
Any information you could provide regarding your browser version, sqlite-wasm version, and error messages would be helpful. Without that, all anyone can do is speculate about the unspecified problem you're having.
You should not invoke executeSql() until init() resolves.
I had to find an example outside the documentation to successfully instantiate OPFS web-worker, are happy to share that here. Other SQLite WASM wrappers exist that look more mature, I started here due to being affiliated with SQLite.
You should not invoke
executeSql()untilinit()resolves.
Correct. As per the documentation. Please also see the /demo folder.
Specifically, the comlink.js file.