fmguerreiro opened a new pull request, #2312:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2312
## Summary
- **SECURITY LABEL** (pgmold-115): parses `SECURITY LABEL [FOR provider] ON
object_type name IS {'label' | NULL}`. Supported object types: TABLE, COLUMN,
DATABASE, DOMAIN, FUNCTION, ROLE, SCHEMA, SEQUENCE, TYPE, VIEW, MATERIALIZED
VIEW.
- **CREATE USER MAPPING** (pgmold-119): parses `CREATE USER MAPPING [IF NOT
EXISTS] FOR {role | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC} SERVER name
[OPTIONS (...)]`.
- **CREATE TABLESPACE** (pgmold-120): parses `CREATE TABLESPACE name [OWNER
role] LOCATION 'dir' [WITH (options)]`.
## Details
- Added `SecurityLabelObjectKind` enum, `SecurityLabel`, `CreateUserMapping`
(with `UserMappingUser` enum), and `CreateTablespace` structs in
`src/ast/ddl.rs`.
- Added `Statement` variants and `Display` arms in `src/ast/mod.rs`.
- Added `Span::empty()` arms in `src/ast/spans.rs`.
- Added `LABEL` and `MAPPING` keywords to `src/keywords.rs`.
- `SECURITY LABEL` dispatches from `parse_statement` (top-level, not under
CREATE).
- `CREATE USER MAPPING` is checked before the existing `CREATE USER` branch.
- Added 11 round-trip tests in `tests/sqlparser_postgres.rs`.
Note: fork CI does not auto-run on PRs.
--
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]