LucaCappelletti94 commented on code in PR #1830: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1830#discussion_r2072419701
########## src/parser/mod.rs: ########## @@ -5894,6 +5896,47 @@ impl<'a> Parser<'a> { Ok(owner) } + /// ```sql + /// CREATE DOMAIN name [ AS ] data_type + /// [ COLLATE collation ] + /// [ DEFAULT expression ] + /// [ domain_constraint [ ... ] ] + /// + /// where domain_constraint is: + /// + /// [ CONSTRAINT constraint_name ] + /// { NOT NULL | NULL | CHECK (expression) } + /// ``` + /// + /// [PostgreSQL Documentation](https://www.postgresql.org/docs/current/sql-createdomain.html) Review Comment: Done ########## src/parser/mod.rs: ########## @@ -5894,6 +5896,47 @@ impl<'a> Parser<'a> { Ok(owner) } + /// ```sql + /// CREATE DOMAIN name [ AS ] data_type + /// [ COLLATE collation ] + /// [ DEFAULT expression ] + /// [ domain_constraint [ ... ] ] + /// + /// where domain_constraint is: + /// + /// [ CONSTRAINT constraint_name ] + /// { NOT NULL | NULL | CHECK (expression) } + /// ``` + /// + /// [PostgreSQL Documentation](https://www.postgresql.org/docs/current/sql-createdomain.html) + pub fn parse_create_domain(&mut self) -> Result<Statement, ParserError> { Review Comment: Done -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org