Skip to content
go-libfossil Artifact [f4e0bad8b9]
Login

Artifact [f4e0bad8b9]

Artifact f4e0bad8b978da0601bf72cee1043a65b5a595046a23df6e0f405a32dbebd230:


---
title: db/driver/ncruces
weight: 20
---

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

```go
import _ "github.com/danmestas/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.