Skip to content

feat: add MariaDB parser to monorepo#34

Merged
h3n4l merged 1 commit intomainfrom
add-mariadb-parser
Nov 3, 2025
Merged

feat: add MariaDB parser to monorepo#34
h3n4l merged 1 commit intomainfrom
add-mariadb-parser

Conversation

@h3n4l
Copy link
Copy Markdown
Member

@h3n4l h3n4l commented Nov 3, 2025

Summary

  • Migrates the MariaDB parser from standalone mariadb-parser repository
  • Adds test coverage with 22 SQL example files
  • Updates CI workflow to include mariadb in test matrix
  • All tests passing successfully

Changes

  • Added MariaDB grammar files (MariaDBLexer.g4, MariaDBParser.g4)
  • Added 22 test examples covering various SQL statements
  • Created Makefile for building and testing the parser
  • Updated package names from parser to mariadb
  • Updated import paths to github.com/bytebase/parser/mariadb
  • Updated .github/workflows/tests.yml to include mariadb parser
  • Generated parser files using ANTLR 4 with Go target

Test plan

  • All 22 MariaDB parser tests passing
  • Parser generation successful with ANTLR 4
  • CI workflow updated to include mariadb parser
  • Package names and imports updated correctly

🤖 Generated with Claude Code

This commit adds the MariaDB parser from the standalone mariadb-parser repository into the unified parser monorepo.

Changes:
- Added MariaDB grammar files (MariaDBLexer.g4, MariaDBParser.g4)
- Added test infrastructure with 22 example SQL files
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'mariadb'
- Updated import paths to github.com/bytebase/parser/mariadb
- Updated CI workflow to include mariadb in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 22 tests passing successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@h3n4l h3n4l merged commit 01783b6 into main Nov 3, 2025
5 checks passed
@h3n4l h3n4l deleted the add-mariadb-parser branch November 3, 2025 10:13
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.

1 participant