Logo
Explore Help
Sign In
go/mysql
1
0
Fork 0
You've already forked mysql
Code Issues Pull Requests Packages Releases 2 Activity
Files
9d8762458c47f05ad7b0c76b43e8459642e4eee0
mysql/go.mod

14 lines
302 B
Modula-2
Raw Normal View History

feat(mysql): initial stable release v0.9.0 database/sql-backed MySQL client with launcher lifecycle, health check, unit-of-work via context injection, and structured error mapping. What's included: - Executor / Tx / Client / Component interfaces using database/sql native types (sql.Result, *sql.Rows, *sql.Row) - Tx.Commit() / Tx.Rollback() without ctx, matching the honest database/sql contract - New(logger, cfg) constructor; *sql.DB opened in OnInit - Config struct with env-tag support for all pool tuning parameters - UnitOfWork via context injection; GetExecutor(ctx) returns active *sql.Tx or *sql.DB - HandleError mapping MySQLError.Number to xerrors codes (1062 → AlreadyExists, 1216/1217/1451/1452 → InvalidInput, ErrNoRows → NotFound) - Driver imported as mysqldrv alias to avoid package name collision - health.Checkable at LevelCritical; HealthCheck delegates to db.PingContext Tested-via: todo-api POC integration Reviewed-against: docs/adr/
2026-03-19 13:21:34 +00:00
module code.nochebuena.dev/go/mysql
go 1.25
require (
code.nochebuena.dev/go/health v0.9.0
code.nochebuena.dev/go/launcher v0.9.0
code.nochebuena.dev/go/logz v0.9.0
code.nochebuena.dev/go/xerrors v0.9.0
github.com/go-sql-driver/mysql v1.8.1
)
require filippo.io/edwards25519 v1.1.0 // indirect
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 19ms Template: 2ms
English
English
Licenses API