Files
sqlite3/embed/README.md

41 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2024-03-25 15:14:24 +00:00
# Embeddable Wasm build of SQLite
2023-03-10 15:50:11 +00:00
2025-02-18 18:01:55 +00:00
This folder includes an embeddable Wasm build of SQLite 3.49.1 for use with
2023-03-10 15:50:11 +00:00
[`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3).
The following optional features are compiled in:
2023-11-09 16:35:45 +00:00
- [math functions](https://sqlite.org/lang_mathfunc.html)
2024-03-12 13:44:46 +00:00
- [FTS5](https://sqlite.org/fts5.html)
2023-11-09 16:35:45 +00:00
- [JSON](https://sqlite.org/json1.html)
- [R*Tree](https://sqlite.org/rtree.html)
- [GeoPoly](https://sqlite.org/geopoly.html)
2024-09-27 16:27:54 +01:00
- [Spellfix1](https://sqlite.org/spellfix1.html)
2023-11-09 16:35:45 +00:00
- [soundex](https://sqlite.org/lang_corefunc.html#soundex)
2024-05-24 11:27:03 +01:00
- [stat4](https://sqlite.org/compile.html#enable_stat4)
2023-03-21 00:13:12 +00:00
- [base64](https://github.com/sqlite/sqlite/blob/master/ext/misc/base64.c)
- [decimal](https://github.com/sqlite/sqlite/blob/master/ext/misc/decimal.c)
2023-12-30 10:44:50 +00:00
- [ieee754](https://github.com/sqlite/sqlite/blob/master/ext/misc/ieee754.c)
2023-03-21 00:13:12 +00:00
- [regexp](https://github.com/sqlite/sqlite/blob/master/ext/misc/regexp.c)
- [series](https://github.com/sqlite/sqlite/blob/master/ext/misc/series.c)
- [uint](https://github.com/sqlite/sqlite/blob/master/ext/misc/uint.c)
- [time](../sqlite3/time.c)
2023-03-10 15:50:11 +00:00
2024-08-09 12:45:19 +01:00
See the [configuration options](../sqlite3/sqlite_opt.h),
2023-05-31 18:45:45 +01:00
and [patches](../sqlite3) applied.
2023-03-10 15:50:11 +00:00
2023-04-14 00:09:40 +01:00
Built using [`wasi-sdk`](https://github.com/WebAssembly/wasi-sdk),
2024-06-21 14:53:36 +01:00
and [`binaryen`](https://github.com/WebAssembly/binaryen).
The build is easily reproducible, and verifiable, using
2024-08-09 12:45:19 +01:00
[Artifact Attestations](https://github.com/ncruces/go-sqlite3/attestations).
### Customizing the build
You can use your own custom build of SQLite.
Examples of custom builds of SQLite are:
- [`github.com/ncruces/go-sqlite3/embed/bcw2`](https://github.com/ncruces/go-sqlite3/tree/main/embed/bcw2)
built from a branch supporting [`BEGIN CONCURRENT`](https://sqlite.org/src/doc/begin-concurrent/doc/begin_concurrent.md)
2024-10-10 12:58:32 +01:00
and [Wal2](https://sqlite.org/cgi/src/doc/wal2/doc/wal2.md).
2024-08-09 12:45:19 +01:00
- [`github.com/asg017/sqlite-vec-go-bindings/ncruces`](https://github.com/asg017/sqlite-vec-go-bindings)
which includes the [`sqlite-vec`](https://github.com/asg017/sqlite-vec) vector search extension.