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
Luca Cappelletti
1114d6a2bc
Add PostgreSQL Operator DDL Support ( #2096 )
...
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-19 14:19:39 +00:00
r1b
1198c1ad11
fix: parse error on unnamed arg with default syntax ( #2091 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-18 09:41:48 +00:00
xitep
4f79997c8e
Include DML keyword in statement span ( #2090 )
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-11-13 09:27:58 +00:00
Luca Cappelletti
78be8b178b
Complete PostgreSQL CREATE TYPE Support ( #2094 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-13 09:25:27 +00:00
etgarperets
f69407b344
Add support for INSERT INTO VALUE ( #2085 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-11 08:10:42 +00:00
Alexander Beedie
308a7231bc
Make BitwiseNot ("~") available for all dialects, not just PostgreSQL ( #2081 )
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-10-30 11:57:25 +00:00
Thomas Kluyver
67684c84d4
SQLite: make period optional for CREATE TRIGGER ( #2071 )
...
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-22 09:12:06 +00:00
Luca Cappelletti
c8531d41a1
Added support for MATCH syntax and unified column option ForeignKey ( #2062 )
...
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-15 11:15:55 +00:00
Luca Cappelletti
4490c8c55c
Added support for SQLite triggers ( #2037 )
...
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-11 11:16:56 +00:00
Luca Cappelletti
cc595cfd84
Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants ( #2057 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-10-10 14:08:20 +00:00
Luca Cappelletti
8c82fc0a19
Moved constraint variant outside of TableConstraint enum ( #2054 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-08 11:03:26 +00:00
Chen Chongchen
0b723147b6
feat: support postgres alter schema ( #2038 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-09-19 08:37:27 +00:00
Luca Cappelletti
280f51889f
Moved CreateTrigger and DropTrigger out of Statement enum ( #2026 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-09-15 07:26:46 +00:00
Adam Johnson
9f515bf8c3
Add support for PostgreSQL JSON function 'RETURNING' clauses ( #2001 )
2025-08-26 21:22:26 +02:00
Yoav Cohen
4b8797e8f3
Snowflake: Add support for CREATE DYNAMIC TABLE ( #1960 )
2025-08-20 11:08:22 +02:00
Michael Victor Zink
67fca82495
Improve MySQL option parsing in index definitions ( #1997 )
2025-08-08 11:32:20 +02:00
Michael Victor Zink
183bc7c5ff
Improve MySQL CREATE TRIGGER parsing ( #1998 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-08-08 07:02:59 +02:00
Michael Victor Zink
c1648e79fe
Postgres: Support INTERVAL data type options ( #1984 )
Rust / compile (push) Has been cancelled
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-08-02 08:05:13 +02:00
etgarperets
bde269b56f
Add ODBC escape syntax support for time expressions ( #1953 )
2025-07-29 12:37:04 +02:00
Sergey Olontsev
4d9338638f
Fix for Postgres regex and like binary operators ( #1928 )
2025-07-17 10:07:28 +02:00
Yoav Cohen
9b9ffe450c
MSSQL: Add support for EXEC output and default keywords ( #1940 )
2025-07-14 10:19:28 +02:00
Yoav Cohen
ee31b64f9e
Add support for Redshift SELECT * EXCLUDE ( #1936 )
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
2025-07-11 11:39:29 +02:00
Sergey Olontsev
239e30a97c
Support for Postgres CREATE SERVER ( #1914 )
...
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-07-03 19:04:32 +02:00
feral-dot-io
9020385c02
Add span for Expr::TypedString ( #1919 )
2025-07-03 18:24:51 +02:00
carl
418b94227a
Postgres: support ADD CONSTRAINT NOT VALID and VALIDATE CONSTRAINT ( #1908 )
2025-07-03 18:19:26 +02:00
Yoav Cohen
015caca611
Redshift alter column type no set ( #1912 )
2025-07-03 18:16:21 +02:00
Ifeanyi Ubah
5f2b5fe7be
Fix clippy lints on 1.88.0 ( #1910 )
2025-06-27 14:21:17 -04:00
Mohamed Abdeen
1d0dc7cdd8
Postgres: Add support for text search types ( #1889 )
2025-06-22 09:02:51 +02:00
Mohamed Abdeen
84c3a1b325
MySQL: [[NOT] ENFORCED] in CHECK constraint ( #1870 )
2025-06-07 06:48:40 +02:00
Mohamed Abdeen
4cf5e571d3
Postgres: Apply ONLY keyword per table in TRUNCATE stmt ( #1872 )
2025-06-06 09:10:03 +02:00
Artem Osipov
5327f0ce13
Add ICEBERG keyword support to ALTER TABLE statement ( #1869 )
2025-06-04 19:49:07 +02:00
Luca Cappelletti
05d7ffb1d5
Handle optional datatypes properly in CREATE FUNCTION statements ( #1826 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-05-21 05:49:28 +02:00
Mohamed Abdeen
c6e897dc12
Postgresql: Add REPLICA IDENTITY operation for ALTER TABLE ( #1844 )
2025-05-14 09:40:44 +02:00
Luca Cappelletti
ac1c339666
Added support for CREATE DOMAIN ( #1830 )
2025-05-04 23:21:44 +02:00
Andrew Harper
a497358c3a
Add CREATE TRIGGER support for SQL Server ( #1810 )
2025-05-03 16:59:13 +02:00
benrsatori
728645fb31
Add all missing table options to be handled in any order ( #1747 )
...
Co-authored-by: Tomer Shani <tomer.shani@satoricyber.com>
2025-05-02 15:16:59 +02:00
Luca Cappelletti
483394cd1a
Added support for DROP DOMAIN ( #1828 )
2025-05-02 05:16:24 +02:00
Simon Vandel Sillesen
e5d2215267
Support some of pipe operators ( #1759 )
2025-05-02 05:13:47 +02:00
Andrew Harper
2eb1e7bdd4
Add CREATE FUNCTION support for SQL Server ( #1808 )
2025-04-23 18:10:57 +02:00
Luca Cappelletti
896c088153
Add support for INHERITS option in CREATE TABLE statement ( #1806 )
2025-04-12 18:03:43 +02:00
Mohamed Abdeen
3a8a3bb7a5
SET statements: scope modifier for multiple assignments ( #1772 )
2025-03-22 06:38:00 +01:00
Mohamed Abdeen
f487cbe004
Add GLOBAL context/modifier to SET statements ( #1767 )
2025-03-20 06:52:56 +01:00
Ifeanyi Ubah
f81aed6359
BigQuery: Add support for CREATE SCHEMA options ( #1742 )
2025-03-14 08:00:19 +01:00
Michael Victor Zink
fb578bb419
Preserve MySQL-style LIMIT <offset>, <limit> syntax ( #1765 )
2025-03-12 21:24:06 +01:00
Mohamed Abdeen
85f855150f
SET with a list of comma separated assignments ( #1757 )
2025-03-12 21:02:39 +01:00
Luca Cappelletti
6ec5223f50
Extend support for INDEX parsing ( #1707 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-03-04 06:59:39 +01:00
Michael
648efd7057
feat: adjust create and drop trigger for mysql dialect ( #1734 )
2025-02-25 07:50:29 +01:00
Ophir LOJKINE
c335c8883b
Store spans for Value expressions ( #1738 )
2025-02-25 07:33:57 +01:00
benrsatori
339239d0c5
Add support for PostgreSQL/Redshift geometric operators ( #1723 )
2025-02-20 19:50:32 +01:00