Nuno Cruces 3bb1898335 More APIs. (#125)
sqlite3_db_cacheflush
sqlite3_db_status
sqlite3_expanded_sql
sqlite3_next_stmt
sqlite3_sql
sqlite3_table_column_metadata
sqlite3_trace_v2
sqlite3_value_frombind
2024-07-31 12:15:08 +01:00
2024-07-24 12:37:35 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-26 23:51:35 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-20 00:43:34 +01:00
2024-07-31 12:15:08 +01:00
2023-03-05 12:20:02 +00:00
2024-01-18 15:53:00 +00:00
2023-12-02 12:17:18 +00:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-20 12:52:25 +01:00
2024-07-23 13:28:09 +01:00
2024-01-11 02:18:12 +00:00
2024-04-04 01:25:52 +01:00
2024-04-04 01:25:52 +01:00
2024-07-08 12:06:57 +01:00
2023-08-09 16:16:45 +01:00
2024-07-09 00:51:54 +01:00
2024-06-07 12:10:03 +01:00
2023-01-11 14:54:42 +00:00
2024-06-07 12:10:03 +01:00
2023-11-04 01:18:25 +00:00
2024-07-31 12:15:08 +01:00
2024-04-24 01:07:17 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-05-24 11:39:27 +01:00
2024-07-31 12:15:08 +01:00
2024-07-31 12:15:08 +01:00
2024-07-26 12:25:15 +01:00
2024-07-26 12:25:15 +01:00

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. ↩︎

Description
No description provided
Readme MIT 49 MiB
Languages
Go 89.9%
C 5.2%
WebAssembly 3.5%
Shell 1.4%