Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b9794f683
|
||
|
|
54f9c74562
|
||
|
|
1bd1ab695c
|
||
|
|
c333653655
|
||
|
|
274bcce69f
|
||
|
|
64ebf76f31
|
||
|
|
fe3e0227d5
|
@@ -0,0 +1,62 @@
|
||||
# Changelog — einherjar/db-postgres
|
||||
|
||||
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.3.0] — 2026-08-08
|
||||
|
||||
Minor — coordinated framework version alignment. No code or API changes in this module.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped `contracts`, `core` to v1.3.0.
|
||||
|
||||
## [1.2.0] — 2026-08-08
|
||||
|
||||
Minor — coordinated framework version alignment. No code or API changes in this module.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped `contracts`, `core` to v1.2.0.
|
||||
|
||||
## [1.1.3] — 2026-08-08
|
||||
|
||||
Patch — coordinated framework version alignment.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies (\`contracts\`, \`core\`) to v1.1.3. No code or API changes.## [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.
|
||||
@@ -1,6 +1,6 @@
|
||||
# einherjar/db-postgres
|
||||
|
||||
[](https://code.nochebuena.dev/einherjar/db-postgres)
|
||||
[](https://code.nochebuena.dev/einherjar/db-postgres)
|
||||
[](LICENSE)
|
||||
[](https://go.dev)
|
||||
[]()
|
||||
@@ -19,8 +19,9 @@
|
||||
import dbpg "code.nochebuena.dev/einherjar/db-postgres"
|
||||
|
||||
db := dbpg.New(logger, dbpg.DefaultConfig())
|
||||
launcher.Append(db) // OnInit opens pool; OnStop closes it
|
||||
health.Register(db) // PING health check; LevelCritical
|
||||
lc.Append(db) // OnInit opens pool; OnStop closes it
|
||||
// db is observability.Checkable (PING health check, LevelCritical):
|
||||
srv.Get("/health", health.NewHandler(logger, db).ServeHTTP)
|
||||
```
|
||||
|
||||
### Querying
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
// # Lifecycle Registration
|
||||
//
|
||||
// db := postgres.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
|
||||
//
|
||||
|
||||
@@ -3,8 +3,8 @@ module code.nochebuena.dev/einherjar/db-postgres
|
||||
go 1.26
|
||||
|
||||
require (
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0
|
||||
code.nochebuena.dev/einherjar/core v1.0.0
|
||||
code.nochebuena.dev/einherjar/contracts v1.3.0
|
||||
code.nochebuena.dev/einherjar/core v1.3.0
|
||||
github.com/jackc/pgerrcode v0.0.0-20250907135507-afb5586c32a6
|
||||
github.com/jackc/pgx/v5 v5.8.0
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0 h1:hRudEtOIqU7vwedYLsCh8+9q5dCnKb61qX+zibqImRU=
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
code.nochebuena.dev/einherjar/core v1.0.0 h1:AueZgfjp3+rQmDKOxmJQ945TTh+sqC1l/xJdTOdbr9w=
|
||||
code.nochebuena.dev/einherjar/core v1.0.0/go.mod h1:0IywfRnJXX9xXQO6iPVaq2QDlXbbpXrB8A4T7gO8nE4=
|
||||
code.nochebuena.dev/einherjar/contracts v1.3.0 h1:rm5hqaA1NBtWgH8okwwt6WLoIne1SwQ1Ogi7qbbwfY8=
|
||||
code.nochebuena.dev/einherjar/contracts v1.3.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
code.nochebuena.dev/einherjar/core v1.3.0 h1:LRT8gln+KJLLGzySVf3C0WX/qiufxg5Jp5v2jySBirE=
|
||||
code.nochebuena.dev/einherjar/core v1.3.0/go.mod h1:2Pdbb3Pni8dYBZKOpQKqzpR/WFq+Ln9+KSPycf7DQh0=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
||||
Reference in New Issue
Block a user