fmguerreiro opened a new pull request, #2515: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2515
Parses `CREATE FOREIGN TABLE [IF NOT EXISTS] name (columns) SERVER server [OPTIONS (...)]` ([docs](https://www.postgresql.org/docs/current/sql-createforeigntable.html)). Split out of #2317 at @LucaCappelletti94's request. That PR now carries `CREATE FOREIGN DATA WRAPPER` only. Table-level `OPTIONS` reuses the list parser pulled out of `parse_pg_create_server`. Both PRs touch that function, so whichever lands second needs a rebase there. Per-column `OPTIONS (...)`, `INHERITS`, `PARTITION OF` and `ALTER FOREIGN TABLE` are out of scope, and the rustdoc says so. Ported from the `pgmold-sqlparser` fork, where it ran against PostgreSQL 13-17 schemas in [pgmold](https://github.com/fmguerreiro/pgmold). -- 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]
