Where do I get sql-wasm.wasm ?
See original GitHub issueHi! Really excited by this project. I’m trying it out locally, using the directions in the readme, and my browser’s making a request for /js/sql-wasm.wasm
which throws a 404 as it doesn’t exist. Not sure what’s calling it, or where it’s supposed to be. Any suggestions?
I see it as a static file in the example repo, but the readme doesn’t mention it 🤔
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
sql-wasm - npm
SQLite compiled to WebAssembly through Emscripten.. Latest version: 1.1.4, last published: 4 years ago. Start using sql-wasm in your project ...
Read more >SQL-WASM.WASM: DOWNLOAD - CDNPKG .com
Download sql-wasm.wasm or get a CDN url for 5 versions of sql.js.
Read more >SQL Databases in the Browser, via WASM: SQLite and DuckDB
In this post, I'll review a couple of WASM compiled databses that you can run purely within a browser: SQLite and Duck.db. SQLite....
Read more >About the sqlite3 WASM/JS Subproject
Alon Zakai's sql.js was an essential stepping stone in this code's development as it demonstrates how to handle some of the WASM-related voodoo...
Read more >SQLite in Browser using WebAssembly - Vivek Kumar Bansal
sql.js comes with two builds, a debug build and a production build. The debug build can be found at sql.js/dist/sql ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Overall, it’s not a good practice to copy wasm file to your public dir, then you will lose ability to receive updates. It’s better to import from lib. Here how you can do with CRA:
Or with vite:
Also, this might help you https://trong-orm.netlify.app/core/usage https://trong-orm.netlify.app/backends/web (it’s an abstraction layer, that makes it easier to use absurd-sql. There is also CRA and vite repo example)
Hey @timwis I just downloaded the
.wasm
file from the examples folder.https://github.com/jlongster/absurd-sql/blob/master/src/examples/sql-wasm.wasm
In my react application where I’m testing this library I put it in the public/wasm/bin folder and it works. When I initialize it with initSQLJs it looks like this
SQL = await initSqlJs({ locateFile: file => `/wasm/bin/${file}` });