apache / datafusion-sqlparser-rs

Extensible SQL Lexer and Parser for Rust
Apache License 2.0
2.8k stars 543 forks source link

Implements DROP POLICY syntax for PostgreSQL #1445

Closed git-hulk closed 1 month ago

git-hulk commented 1 month ago
DROP POLICY [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]

For the documentation, please refer:

https://www.postgresql.org/docs/current/sql-createpolicy.html

This closes #1404.

git-hulk commented 1 month ago

ALTER POLICY will be supported in another dedicated PR.

git-hulk commented 1 month ago

cc @iffyio

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11052714807

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ast/mod.rs 11 13 84.62%
tests/sqlparser_common.rs 17 21 80.95%
<!-- Total: 48 54 88.89% -->
Totals Coverage Status
Change from base Build 11038149323: 0.01%
Covered Lines: 29825
Relevant Lines: 33390

💛 - Coveralls