mirror of
https://github.com/matrix-org/go-sqlite3-js.git
synced 2026-11-17 03:40:27 +00:00
Go SQL driver for sqlite3 in browser (sql.js) from go-wasm
- Go 63.2%
- JavaScript 35.6%
- Dockerfile 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .dockerignore | ||
| .gitignore | ||
| .golangci.yml | ||
| connection.go | ||
| Dockerfile | ||
| go.mod | ||
| go_sqlite_js_wasm_exec | ||
| js.go | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| sql.js | ||
| sqlite3.go | ||
| sqlite3_test.go | ||
| stmt.go | ||
| wasm_exec.js | ||
go-sqlite3-js
Experimental SQL driver for sql.js (in-browser sqlite) from Go WASM.
Only implements the subset of the SQL API required by Dendrite.
To run tests in Docker and Node:
$ docker build -t gsj .
$ docker run gsj
To run tests locally:
$ yarn install
$ GOOS=js GOARCH=wasm go test -exec="./go_sqlite_js_wasm_exec" .