3 Commits
Author SHA1 Message Date
Rene Nochebuena 29d2d71ca9 chore(db-sqlite): framework version alignment to v1.1.2 2026-08-08 00:43:43 -06:00
Rene Nochebuena 226e10630b docs(db-sqlite): fix wiring doc examples; align to v1.1.1 2026-08-07 23:32:41 -06:00
Rene Nochebuena 585c76a525 docs(db-sqlite): fix fictional launcher.Register/health.Register in doc examples (#2)
The package-doc examples showed a fictional launcher.Register / health.Register
API (and launcher.Append as a package func). Corrected to the real wiring:
lc.Append + web/health.NewHandler(...).ServeHTTP.

Documentation-only. No code, API, or dependency changes; version stays v1.1.0
(the v1.1.0 tag is moved to include this fix). Verified by compiling the
corrected pattern against the real API.

Reviewed-on: #2
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
2026-08-07 22:20:14 -06:00
5 changed files with 56 additions and 11 deletions
+40
View File
@@ -0,0 +1,40 @@
# Changelog — einherjar/db-sqlite
All notable changes to this module are documented here.
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
This module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [1.1.2] — 2026-08-08
Patch — coordinated framework version alignment.
### Changed
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.2. No code or API changes.
## [1.1.1] — 2026-08-07
Patch — corrected package-doc wiring examples plus framework version alignment.
### Fixed
- Doc examples used a fictional `launcher.Register` / `health.Register` API; corrected to
`lc.Append` + `web/health.NewHandler(...).ServeHTTP`.
### Changed
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.1.
## [1.1.0] — 2026-08-07
Patch — coordinated framework version alignment.
### Changed
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.0.
## [1.0.0] — 2026-05-28
Initial release. See the README for the full API and the `v1.0.0` git tag for the source.
+4 -3
View File
@@ -1,6 +1,6 @@
# einherjar/db-sqlite
[![version](https://img.shields.io/badge/version-v1.1.0-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/db-sqlite)
[![version](https://img.shields.io/badge/version-v1.1.2-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/db-sqlite)
[![license](https://img.shields.io/badge/license-AGPL--3.0-22863A?style=flat-square)](LICENSE)
[![go](https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat-square&logo=go&logoColor=white)](https://go.dev)
[![health](https://img.shields.io/badge/health-degraded-E36209?style=flat-square)]()
@@ -19,8 +19,9 @@
import dbsqlite "code.nochebuena.dev/einherjar/db-sqlite"
db := dbsqlite.New(logger, dbsqlite.DefaultConfig())
launcher.Append(db) // OnInit opens database; OnStop closes it
health.Register(db) // BucketExists-style check; LevelDegraded
lc.Append(db) // OnInit opens database; OnStop closes it
// db is observability.Checkable (LevelDegraded):
srv.Get("/health", health.NewHandler(logger, db).ServeHTTP)
```
### Querying
+6 -2
View File
@@ -15,8 +15,12 @@
// # Lifecycle Registration
//
// db := sqlite.New(logger, cfg)
// launcher.Register(db)
// health.Register(db)
// lc.Append(db) // lifecycle: OnInit → OnStart → OnStop
//
// db satisfies [observability.Checkable], so it can back a health endpoint via
// web/health.NewHandler:
//
// srv.Get("/health", health.NewHandler(logger, db).ServeHTTP)
//
// # Querying
//
+2 -2
View File
@@ -3,8 +3,8 @@ module code.nochebuena.dev/einherjar/db-sqlite
go 1.26
require (
code.nochebuena.dev/einherjar/contracts v1.1.0
code.nochebuena.dev/einherjar/core v1.1.0
code.nochebuena.dev/einherjar/contracts v1.1.2
code.nochebuena.dev/einherjar/core v1.1.2
modernc.org/sqlite v1.37.1
)
+4 -4
View File
@@ -1,7 +1,7 @@
code.nochebuena.dev/einherjar/contracts v1.1.0 h1:GsGr6reyrd9qCc7D8CqbT1LWPTeeK9lT4r4EdsNA5Ro=
code.nochebuena.dev/einherjar/contracts v1.1.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
code.nochebuena.dev/einherjar/core v1.1.0 h1:zxj9bFPthEEFRnvWV/vgNZqWa2y/kAo3p5pODWablyk=
code.nochebuena.dev/einherjar/core v1.1.0/go.mod h1:Ot2JbjsnZ33Ed5C9Ev1kSn2PW+F4dLz/LRwIUh+fYt0=
code.nochebuena.dev/einherjar/contracts v1.1.2 h1:LNAFCKQjpNjkCyMid2AgkhDPPzOx8dvpRqqZ7F3zpo0=
code.nochebuena.dev/einherjar/contracts v1.1.2/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
code.nochebuena.dev/einherjar/core v1.1.2 h1:iYU2fIWtnyOYFbTMD92NaLJMye4XgZHXWhEjB3iS7lo=
code.nochebuena.dev/einherjar/core v1.1.2/go.mod h1:Y7qZ9nri9Ydey3+40yz75KErOvOUjRSoffdykXbncsw=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs=