Questions tagged [sql.js]

sql.js is a port of SQLite to JavaScript

sql.js is a port of SQLite to JavaScript, allowing full SQLite usage to be used in the web browser, Node apps, etc.

44 questions
0
votes
0 answers

Getting SQL.Database is not a constructor (leaflet-tilelayer-mbtiles-ts || sql.js)

While importing any mbtiles file, i get this error : I had an error before that was about assigning a value to a readonly property named stack, so after searching a bit i figured that i had to update the sql.js library to a newer version, then i…
Syler
  • 23
  • 4
0
votes
1 answer

I cannot install sql.js properly

I'm trying to create a database on the client-side using sql.js and vanilla js. I guess, there is some problem within the installation process. I've done the 'npm install sql.js' and included the CDN. I get this error from the console 'Uncaught…
mr.sun
  • 1
  • 3
0
votes
0 answers

Why are my .wasm files not served correctly when invoked with web-workers in Next.js?

Right now I try work with the sql.js library and implement a web-worker that creates a SqLite database in the browser. The library itself consists of .wasm files. Right now these files are in the public directory under a custom assets folder (i.e.…
Mxngls
  • 437
  • 1
  • 5
  • 16
0
votes
1 answer

I'm trying to create Two Tables in sql.js but there is an error regarding foreign key constraint. there is no problem in creating the first table

Sample Code