fmguerreiro opened a new pull request, #2306:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2306

   ## Summary
   
   Adds support for PostgreSQL EXCLUDE constraints to the SQL parser:
   
   - New `ExclusionConstraint` and `ExclusionElement` AST structs
   - New `TableConstraint::Exclusion` variant
   - Parser arm for `EXCLUDE [USING method] (element WITH operator, ...) [WHERE 
(predicate)] [INCLUDE (cols)]`
   - Supports both inline (CREATE TABLE) and ALTER TABLE ADD CONSTRAINT forms
   - Operators stored as `String` to cover PostgreSQL-specific tokens like 
`&&`, `&<`, `&>`, `<->`
   
   ## Test plan
   
   - 8 new tests in `tests/sqlparser_postgres.rs` covering: basic, 
multi-element, WHERE clause, INCLUDE, default index method, DEFERRABLE, ALTER 
TABLE ADD CONSTRAINT, roundtrip
   
   ## Version
   
   Bumped to 0.60.6 for pgmold consumption.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to