2023-01-12 16:29:57 +00:00
|
|
|
# Go bindings to SQLite using Wazero
|
|
|
|
|
|
2023-01-26 01:11:09 +00:00
|
|
|
[](https://pkg.go.dev/github.com/ncruces/go-sqlite3)
|
|
|
|
|
[](https://goreportcard.com/report/github.com/ncruces/go-sqlite3)
|
2023-01-27 15:50:21 +00:00
|
|
|
[](https://raw.githack.com/wiki/ncruces/go-sqlite3/coverage.html)
|
2023-01-12 16:29:57 +00:00
|
|
|
|
2023-01-26 01:11:09 +00:00
|
|
|
⚠️ CAUTION ⚠️
|
|
|
|
|
|
|
|
|
|
This is still very much a WIP.\
|
|
|
|
|
DO NOT USE this with data you care about.
|
2023-01-12 16:29:57 +00:00
|
|
|
|
2023-01-16 12:54:24 +00:00
|
|
|
Roadmap:
|
2023-01-12 16:29:57 +00:00
|
|
|
- [x] build SQLite using `zig cc --target=wasm32-wasi`
|
|
|
|
|
- [x] `:memory:` databases
|
2023-01-19 15:28:36 +00:00
|
|
|
- [x] port [`test_demovfs.c`](https://www.sqlite.org/src/doc/trunk/src/test_demovfs.c) to Go
|
|
|
|
|
- branch [`wasi`](https://github.com/ncruces/go-sqlite3/tree/wasi) uses `test_demovfs.c` directly
|
|
|
|
|
- [x] come up with a simple, nice API, enough for simple queries
|
2023-02-08 00:31:06 +00:00
|
|
|
- [x] file locking, compatible with SQLite on Unix
|
|
|
|
|
- [ ] file locking, compatible with SQLite on Windows
|