apache / datafusion-sqlparser-rs

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

Implements ALTER POLICY syntax for PostgreSQL #1446

Closed git-hulk closed 1 month ago

git-hulk commented 1 month ago
ALTER POLICY name ON table_name RENAME TO new_name

ALTER POLICY name ON table_name
    [ TO { role_name | PUBLIC | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...] ]
    [ USING ( using_expression ) ]
    [ WITH CHECK ( check_expression ) ]

For the documentation, please refer:

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

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11091759958

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ast/ddl.rs 14 16 87.5%
src/ast/mod.rs 4 6 66.67%
tests/sqlparser_common.rs 24 34 70.59%
<!-- Total: 76 90 84.44% -->
Files with Coverage Reduction New Missed Lines %
src/ast/mod.rs 1 82.39%
src/parser/mod.rs 1 93.35%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 11091694888: -0.01%
Covered Lines: 29901
Relevant Lines: 33480

💛 - Coveralls
git-hulk commented 1 month ago

cc @iffyio

alamb commented 1 month ago

I merged up from main to resolve a conflict

git-hulk commented 1 month ago

@alamb Thank you!

alamb commented 1 month ago

🚀