GoToSocial/vendor/github.com/ncruces/go-sqlite3
Daenney 49009fbd8f
[chore] Update ncruces/go-sqlite3 to 0.17 (#3072)
This fixes some linkname shenanigans previous versions of the library
were using. It's now safe to upgrade to Go 1.23 and beyond once they
become available.
2024-07-05 12:06:03 +02:00
..
driver [chore] update github.com/ncruces/go-sqlite3 -> v0.16.3 (#3029) 2024-06-22 11:59:29 +02:00
embed [chore] Update ncruces/go-sqlite3 to 0.17 (#3072) 2024-07-05 12:06:03 +02:00
internal [chore] Update ncruces/go-sqlite3 to 0.17 (#3072) 2024-07-05 12:06:03 +02:00
util/osutil
vfs [chore] update github.com/ncruces/go-sqlite3 -> v0.16.3 (#3029) 2024-06-22 11:59:29 +02:00
.gitignore
LICENSE
README.md [chore] Update ncruces/go-sqlite3 to 0.17 (#3072) 2024-07-05 12:06:03 +02:00
backup.go
blob.go
config.go
conn.go
const.go
context.go
error.go
func.go
go.work
go.work.sum
json.go
pointer.go
quote.go
sqlite.go
stmt.go
time.go
txn.go
value.go
vtab.go [chore] update github.com/ncruces/go-sqlite3 -> v0.16.3 (#3029) 2024-06-22 11:59:29 +02:00

README.md

Go bindings to SQLite using Wazero

Go Reference Go Report Go Coverage

Go module github.com/ncruces/go-sqlite3 is a cgo-free SQLite wrapper.
It provides a database/sql compatible driver, as well as direct access to most of the C SQLite API.

It wraps a Wasm build of SQLite, and uses wazero as the runtime.
Go, wazero and x/sys are the only runtime dependencies 1.

Packages

Extensions

Advanced features

Caveats

This module replaces the SQLite OS Interface (aka VFS) with a pure Go implementation, which has advantages and disadvantages.

Read more about the Go VFS design here.

Testing

This project aims for high test coverage. It also benefits greatly from SQLite's and wazero's thorough testing.

Every commit is tested on Linux (amd64/arm64/386/riscv64/s390x), macOS (amd64/arm64), Windows (amd64), FreeBSD (amd64), OpenBSD (amd64), NetBSD (amd64), illumos (amd64), and Solaris (amd64).

The Go VFS is tested by running SQLite's mptest.

Performance

Perfomance of the database/sql driver is competitive with alternatives.

The Wasm and VFS layers are also tested by running SQLite's speedtest1.

Alternatives


  1. anything else you find in go.mod is either a test dependency, or needed by one of the extensions. ↩︎