Background
The code of current parser.rs is too large, it's difficult to read and maintain. I'd suggest splitting it into smaller mod files.
Proposal
I have split the ALTER ROLE code into parser/alter.rs in this PR feat: add ALTER ROLE syntax of PostgreSQL and MS SQL Server by r4ntix · Pull Request #942 · sqlparser-rs/sqlparser-rs (github.com)
I think we can do a refactoring and split the parser, like this:
./src/parser/
|-- alter.rs
|-- create.rs
|-- drop.rs
|-- mod.rs
|-- select.rs
|-- ...
`-- utils.rs
I wonder what people would suggest about this?
Implementation Plan
we can break it up into some issues and PRs to step through this refactoring.
DDL
all tasks:
DML
all tasks:
DCL
all tasks:
PostgreSQL/BigQuery/MySQL/SparkSQL/ClickHouse/Hive
all tasks:
Background
The code of current
parser.rsis too large, it's difficult to read and maintain. I'd suggest splitting it into smaller mod files.Proposal
I have split the
ALTER ROLEcode intoparser/alter.rsin this PR feat: addALTER ROLEsyntax of PostgreSQL and MS SQL Server by r4ntix · Pull Request #942 · sqlparser-rs/sqlparser-rs (github.com)I think we can do a refactoring and split the parser, like this:
I wonder what people would suggest about this?
Implementation Plan
we can break it up into some issues and PRs to step through this refactoring.
DDL
all tasks:
DML
all tasks:
DCL
all tasks:
PostgreSQL/BigQuery/MySQL/SparkSQL/ClickHouse/Hive
all tasks: