mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Changed all parsing methods to take '&self' instead of '\&mut self'. Mutable parser state (token index and parser state) now uses for interior mutability. This refactoring is preparation for the borrowed tokenizer work. When holding borrowed tokens from the parser (with lifetime tied to '\&self'), we cannot call methods requiring '\&mut self' due to Rust's borrowing rules. Using interior mutability resolves this conflict by allowing state mutations through shared references. |
||
|---|---|---|
| .. | ||
| queries/tpch | ||
| test_utils | ||
| pretty_print.rs | ||
| sqlparser_bigquery.rs | ||
| sqlparser_clickhouse.rs | ||
| sqlparser_common.rs | ||
| sqlparser_custom_dialect.rs | ||
| sqlparser_databricks.rs | ||
| sqlparser_duckdb.rs | ||
| sqlparser_hive.rs | ||
| sqlparser_mssql.rs | ||
| sqlparser_mysql.rs | ||
| sqlparser_postgres.rs | ||
| sqlparser_redshift.rs | ||
| sqlparser_regression.rs | ||
| sqlparser_snowflake.rs | ||
| sqlparser_sqlite.rs | ||