MySQL driver (reader + writer) #34

Closed
opened 2026-10-02 21:30:24 +00:00 by warkanum · 4 comments
Owner
  • Add MySQL reader and writer, including live database connection
  • Build on pkg/mariadb datatype conversion (currently the only MySQL/MariaDB code)
  • Register in the CLI
- Add MySQL reader and writer, including live database connection - Build on pkg/mariadb datatype conversion (currently the only MySQL/MariaDB code) - Register in the CLI
warkanum added the Kind/Feature
Priority
High
Kind/Feature
Priority
High
2
labels 2026-10-02 21:30:24 +00:00
Member

Dispatcher assignment (2026-10-03T12:00:00+02:00). Forge: Gitea; issue: wdevs/relspecgo#34 — MySQL driver (reader + writer). Classification: non-simple cross-layer driver implementation; Ornith excluded. Selected worker: Claude Code CLI, model claude-sonnet-5-5; live binary/version/auth checks and bounded probe passed. Worker session/process: to be launched after this assignment comment is verified. Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-34-mysql-driver. Branch: issue-34-mysql-driver (not pushed yet). Plan: read issue and CLAUDE.md, inspect MariaDB/type conversion patterns, implement minimal reader/writer and CLI registration, run focused/full feasible verification, commit, push, create PR, and post delivery evidence.

Dispatcher assignment (2026-10-03T12:00:00+02:00). Forge: Gitea; issue: wdevs/relspecgo#34 — MySQL driver (reader + writer). Classification: non-simple cross-layer driver implementation; Ornith excluded. Selected worker: Claude Code CLI, model claude-sonnet-5-5; live binary/version/auth checks and bounded probe passed. Worker session/process: to be launched after this assignment comment is verified. Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-34-mysql-driver. Branch: issue-34-mysql-driver (not pushed yet). Plan: read issue and CLAUDE.md, inspect MariaDB/type conversion patterns, implement minimal reader/writer and CLI registration, run focused/full feasible verification, commit, push, create PR, and post delivery evidence.
Member

Continuation worker delivery evidence: implemented MySQL/MariaDB live reader and MySQL DDL writer, registered mysql/mariadb in convert, added offline focused tests, and vendored github.com/go-sql-driver/mysql. Verification: GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./... (PASS); GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go vet ./... (PASS); GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go build -o /home/hermes/.tmp/relspec-issue34 ./cmd/relspec (PASS); git diff --check (PASS). Branch issue-34-mysql-driver pushed at SHA 7a9219b6e3. PR: #52 against master.

Continuation worker delivery evidence: implemented MySQL/MariaDB live reader and MySQL DDL writer, registered mysql/mariadb in convert, added offline focused tests, and vendored github.com/go-sql-driver/mysql. Verification: GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./... (PASS); GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go vet ./... (PASS); GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go build -o /home/hermes/.tmp/relspec-issue34 ./cmd/relspec (PASS); git diff --check (PASS). Branch issue-34-mysql-driver pushed at SHA 7a9219b6e3e97e52923b6705fa3a089887ce3035. PR: #52 against master.
Member

Continuation delivery update for wdevs/relspecgo#34.

PR: #52
Branch: issue-34-mysql-driver
Latest commit: 778379538b

Additional correctness fixes after independent review:

  • MySQL writer imports the driver itself so standalone live-writer use registers database/sql.
  • Live writer execution renders DDL without recursively re-entering connection mode.
  • Leading generated SQL comments are stripped before execution, so the first CREATE TABLE is not skipped.
  • Added focused regression coverage for comment stripping.

Verification rerun with GOTMPDIR=/home/hermes/.tmp and GOCACHE=/home/hermes/.cache/go:

  • go test ./pkg/readers/mysql ./pkg/writers/mysql ./cmd/relspec — PASS
  • go test ./... — PASS
  • go vet ./... — PASS
  • go build -o /home/hermes/.tmp/relspec-issue34 ./cmd/relspec — PASS
  • git diff --check — PASS
  • git ls-remote origin refs/heads/issue-34-mysql-driver matches the latest commit above.

No live external MySQL server was required or available for the focused offline tests; live connection paths are implemented but not integration-tested against a running server.

Continuation delivery update for wdevs/relspecgo#34. PR: https://git.warky.dev/wdevs/relspecgo/pulls/52 Branch: issue-34-mysql-driver Latest commit: 778379538b2f46052eb7c0d02573b89a0fea0f83 Additional correctness fixes after independent review: - MySQL writer imports the driver itself so standalone live-writer use registers database/sql. - Live writer execution renders DDL without recursively re-entering connection mode. - Leading generated SQL comments are stripped before execution, so the first CREATE TABLE is not skipped. - Added focused regression coverage for comment stripping. Verification rerun with GOTMPDIR=/home/hermes/.tmp and GOCACHE=/home/hermes/.cache/go: - go test ./pkg/readers/mysql ./pkg/writers/mysql ./cmd/relspec — PASS - go test ./... — PASS - go vet ./... — PASS - go build -o /home/hermes/.tmp/relspec-issue34 ./cmd/relspec — PASS - git diff --check — PASS - git ls-remote origin refs/heads/issue-34-mysql-driver matches the latest commit above. No live external MySQL server was required or available for the focused offline tests; live connection paths are implemented but not integration-tested against a running server.
Author
Owner

Implemented and merged in PR #52.

Implemented and merged in PR #52.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wdevs/relspecgo#34