Skip to content
go-libfossil Artifact [73d644bd61]
Login

Artifact [73d644bd61]

Artifact 73d644bd6156a93c75eb3e14f52e6c1ba610d3eaba153212f9bdf0485302ceb6:



title: db/driver/ncruces

weight: 20

Wasm-friendly SQLite driver based on ncruces/go-sqlite3.

import _ "github.com/danmestas/go-libfossil/db/driver/ncruces"

Importing this package registers an ncruces driver (driver name "sqlite3") with libfossil's db registry. The package exports no public API of its own — register-on-import is the contract.

On js/wasm targets the package additionally imports go-sqlite3-opfs, routing the OPFS virtual filesystem through the same driver registration so browser-side builds get persistent storage automatically.

Use this driver when you need a smaller Wasm footprint than modernc provides, or for build configurations where ncruces's tradeoffs are preferred.

See db for the registry interface.