Artifact f4e0bad8b978da0601bf72cee1043a65b5a595046a23df6e0f405a32dbebd230:
- File
docs/site/content/docs/reference/sdk/db/driver/ncruces/_index.md
— part of check-in
[d1016bd2ef]
at
2026-04-26 08:12:25
on branch trunk
— site(landing): SVG architecture diagram + SDK refresh (#7)
* site(landing): SVG architecture diagram + SDK regen
- Replace ยง04 ASCII diagram with an SVG mirroring the dagnats style: three columns (callers / core / plugins), ember flow arrows with CALLS / DELEGATE / EVENTS / PERSIST labels, bottom box for .fossil (SQLite). Picks up the layout's existing .diagram CSS with no new styles. - Refresh gomarkdoc-generated SDK pages โ they had drifted from current Go doc comments since the original generation.
* docs(site): drop redundant body H1s from frontmatter pages
Each of the four moved docs (architecture, extension-points, migration-from-fossil, testing) and the two hand-written driver _index pages had a body '# Title' that duplicated their frontmatter 'title:'. Hextra renders both, producing the visible doubled headline. Removing the body H1 leaves Hextra's frontmatter-driven page heading as the single source.
SDK api.md pages from gomarkdoc are unaffected โ they have no frontmatter, so Hextra promotes their body H1 to the page title without duplication.
* site(landing): bump version refs to v0.4.2 (user: [email protected], size: 777) [annotate] [blame] [check-ins using]
title: db/driver/ncruces
weight: 20
Wasm-friendly SQLite driver based on ncruces/go-sqlite3.
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.