Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5baebb9c94
|
||
|
|
6639beecc6
|
||
|
|
31b9f9de08
|
||
|
|
7e1b99083f
|
||
|
|
b3f162fa1c
|
||
|
|
621df5ab5d
|
||
|
|
1ec737a1ab
|
||
|
|
60157ab5e1
|
||
|
|
eeef3a676b
|
||
|
|
71593ad685
|
@@ -0,0 +1,97 @@
|
||||
# Changelog — einherjar/db-mysql
|
||||
|
||||
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.7.0] — 2026-08-14
|
||||
|
||||
Minor — coordinated framework release (lockstep versioning). No changes to this module's own API.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies to v1.7.0. The behavioural changes in this release are in `spa-server`
|
||||
(per-file Cache-Control, a navigation-scoped SPA fallback, nosniff, and a non-root image).
|
||||
|
||||
## [1.6.0] — 2026-08-13
|
||||
|
||||
Minor — coordinated framework release (lockstep versioning). No changes to this module's own API.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies to v1.6.0. The framework-wide change in this release is
|
||||
`web`'s new `httputil.Bind` / `httputil.BindEmpty` request-binding adapters.
|
||||
|
||||
## [1.5.0] — 2026-08-09
|
||||
|
||||
Minor — coordinated framework version alignment. No code or API changes in this module.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped `contracts`, `core` to v1.5.0.
|
||||
|
||||
## [1.4.0] — 2026-08-09
|
||||
|
||||
Minor — coordinated framework release: dependency refresh + lockstep version alignment.
|
||||
|
||||
### Changed
|
||||
|
||||
- Refreshed dependencies to their latest minor/patch where available.
|
||||
- Bumped `contracts`, `core` to v1.4.0.
|
||||
|
||||
## [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-mysql
|
||||
|
||||
[](https://code.nochebuena.dev/einherjar/db-mysql)
|
||||
[](https://code.nochebuena.dev/einherjar/db-mysql)
|
||||
[](LICENSE)
|
||||
[](https://go.dev)
|
||||
[]()
|
||||
@@ -19,8 +19,9 @@
|
||||
import dbmysql "code.nochebuena.dev/einherjar/db-mysql"
|
||||
|
||||
db := dbmysql.New(logger, dbmysql.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
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
// # Lifecycle Registration
|
||||
//
|
||||
// db := mysql.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,9 +3,9 @@ module code.nochebuena.dev/einherjar/db-mysql
|
||||
go 1.26
|
||||
|
||||
require (
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.0
|
||||
code.nochebuena.dev/einherjar/core v1.1.0
|
||||
github.com/go-sql-driver/mysql v1.8.1
|
||||
code.nochebuena.dev/einherjar/contracts v1.7.0
|
||||
code.nochebuena.dev/einherjar/core v1.7.0
|
||||
github.com/go-sql-driver/mysql v1.10.0
|
||||
)
|
||||
|
||||
require filippo.io/edwards25519 v1.1.0 // indirect
|
||||
require filippo.io/edwards25519 v1.2.0 // indirect
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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=
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
|
||||
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
|
||||
code.nochebuena.dev/einherjar/contracts v1.7.0 h1:yhbtmvE8u6KXcuG95p888+4tDIiTXDf5z/siKrjGbrc=
|
||||
code.nochebuena.dev/einherjar/contracts v1.7.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
code.nochebuena.dev/einherjar/core v1.7.0 h1:gdjNEgO8E/ALppyBldj27iKQQlWbL/OWV6asdxWLXqU=
|
||||
code.nochebuena.dev/einherjar/core v1.7.0/go.mod h1:IvSCG7XL4gNyoylwlClKj3jepWBLAKb2QKAgumTRkug=
|
||||
filippo.io/edwards25519 v1.2.0 h1:crnVqOiS4jqYleHd9vaKZ+HKtHfllngJIiOpNpoJsjo=
|
||||
filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc=
|
||||
github.com/go-sql-driver/mysql v1.10.0 h1:Q+1LV8DkHJvSYAdR83XzuhDaTykuDx0l6fkXxoWCWfw=
|
||||
github.com/go-sql-driver/mysql v1.10.0/go.mod h1:M+cqaI7+xxXGG9swrdeUIoPG3Y3KCkF0pZej+SK+nWk=
|
||||
|
||||
Reference in New Issue
Block a user