datafusion-sqlparse/tests
Eyal Leshem 0f17b327b9 Add lifetime parameter to BorrowedToken for zero-copy tokenization
This change introduces a lifetime parameter 'a to BorrowedToken enum
  to prepare for zero-copy tokenization support. This is a foundational
  step toward reducing memory allocations during SQL parsing.

  Changes:
  - Added lifetime parameter to BorrowedToken<'a> enum
  - Added _Phantom(Cow<'a, str>) variant to carry the lifetime
  - Implemented Visit and VisitMut traits for Cow<'a, str> to support
    the visitor pattern with the new lifetime parameter
  - Fixed lifetime issues in visitor tests by using tokenized_owned()
    instead of tokenize() where owned tokens are required
  - Type alias Token = BorrowedToken<'static> maintains backward
    compatibility
2025-12-18 17:23:16 +02:00
..
queries/tpch Add Apache License to additional files (#1502) 2024-11-06 16:48:49 -05:00
test_utils Update to ASF header / add when missing (#1437) 2024-09-21 06:23:28 -04:00
pretty_print.rs Add license header to display_utils.rs and pretty_print.rs (#1887) 2025-06-16 18:37:18 +02:00
sqlparser_bigquery.rs Add support for INSERT INTO VALUE (#2085) 2025-11-11 08:10:42 +00:00
sqlparser_clickhouse.rs Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants (#2057) 2025-10-10 14:08:20 +00:00
sqlparser_common.rs Immutable parser (Tokenize borrow strings cont) (#2098) 2025-12-18 05:27:50 +01:00
sqlparser_custom_dialect.rs Immutable parser (Tokenize borrow strings cont) (#2098) 2025-12-18 05:27:50 +01:00
sqlparser_databricks.rs Add support for INSERT INTO VALUE (#2085) 2025-11-11 08:10:42 +00:00
sqlparser_duckdb.rs DuckDB: Allow quoted date parts in EXTRACT (#2030) 2025-09-16 18:25:24 +00:00
sqlparser_hive.rs Fix clippy lints on 1.88.0 (#1910) 2025-06-27 14:21:17 -04:00
sqlparser_mssql.rs Immutable parser (Tokenize borrow strings cont) (#2098) 2025-12-18 05:27:50 +01:00
sqlparser_mysql.rs Include DML keyword in statement span (#2090) 2025-11-13 09:27:58 +00:00
sqlparser_postgres.rs Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00
sqlparser_redshift.rs Add support for VACUUM in Redshift (#2005) 2025-08-21 15:29:01 +02:00
sqlparser_regression.rs Update to ASF header / add when missing (#1437) 2024-09-21 06:23:28 -04:00
sqlparser_snowflake.rs Add snowflake dynamic table parsing (#2083) 2025-11-11 08:10:37 +00:00
sqlparser_sqlite.rs Include DML keyword in statement span (#2090) 2025-11-13 09:27:58 +00:00