datafusion-sqlparse/src
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
..
ast Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00
dialect Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00
parser Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00
display_utils.rs Add license header to display_utils.rs and pretty_print.rs (#1887) 2025-06-16 18:37:18 +02:00
keywords.rs Add PostgreSQL Operator DDL Support (#2096) 2025-11-19 14:19:39 +00:00
lib.rs fix new rust 1.87 cargo clippy warnings (#1856) 2025-05-19 13:09:00 +02:00
test_utils.rs Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00
tokenizer.rs Add lifetime parameter to BorrowedToken for zero-copy tokenization 2025-12-18 17:23:16 +02:00