Skip to content

Migrate MySQL parser from tidb to sqlc-dev/marino#4414

Merged
kyleconroy merged 2 commits intomainfrom
claude/migrate-mysql-parser-5A7jK
Apr 27, 2026
Merged

Migrate MySQL parser from tidb to sqlc-dev/marino#4414
kyleconroy merged 2 commits intomainfrom
claude/migrate-mysql-parser-5A7jK

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

Marino is a sqlc-maintained hard fork of pingcap/parser with a flatter
package layout. The previous test_driver concrete types (ValueExpr,
ParamMarkerExpr) are merged into the ast package as ValueExprBase and
ParamMarkerExprBase.

  • Swap github.com/pingcap/tidb/pkg/parser for github.com/sqlc-dev/marino
  • Drop pingcap/uber/lumberjack transitive deps no longer needed
  • Update dolphin imports to marino's flatter layout (no pkg/parser/...)
  • Replace driver.ValueExpr/ParamMarkerExpr type assertions with
    pcast.ValueExprBase/ParamMarkerExprBase
  • Replace n.TexprNode.Type with promoted n.Type (marino's exprNode is
    unexported, but Type is promoted via field embedding)

claude added 2 commits April 27, 2026 01:50
Marino is a sqlc-maintained hard fork of pingcap/parser with a flatter
package layout. The previous test_driver concrete types (ValueExpr,
ParamMarkerExpr) are merged into the ast package as ValueExprBase and
ParamMarkerExprBase.

- Swap github.com/pingcap/tidb/pkg/parser for github.com/sqlc-dev/marino
- Drop pingcap/uber/lumberjack transitive deps no longer needed
- Update dolphin imports to marino's flatter layout (no pkg/parser/...)
- Replace driver.ValueExpr/ParamMarkerExpr type assertions with
  pcast.ValueExprBase/ParamMarkerExprBase
- Replace n.TexprNode.Type with promoted n.Type (marino's exprNode is
  unexported, but Type is promoted via field embedding)
@kyleconroy kyleconroy merged commit b2e05b5 into main Apr 27, 2026
13 checks passed
@kyleconroy kyleconroy deleted the claude/migrate-mysql-parser-5A7jK branch April 27, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants