Skip to content

Snowflake: Parse ALTER DATABASE RENAME TO - #57

Merged
osipovartem merged 1 commit into
feat/snowflake-schema-modifiers-20261113from
feat/snowflake-alter-database-rename-20261126
Nov 26, 2026
Merged

osipovartem merged 1 commit into
feat/snowflake-schema-modifiers-20261113from
feat/snowflake-alter-database-rename-20261126

Conversation

@osipovartem

Copy link
Copy Markdown

Adds typed Snowflake ALTER DATABASE [IF EXISTS] old_name RENAME TO new_name, as documented in Snowflake ALTER DATABASE. Rename has a separate default-off dialect capability; the existing SET/UNSET behavior and AST variant ordinals are unchanged. Both names stay account identifiers, not relation visitor targets.

Prerequisite for Embucket/rustice#1392. Parser only: no Rustice dependency pin or runtime behavior changes.

Validation: cargo test --all-features (1,645 passed, 7 ignored), cargo clippy --all-targets --all-features -- -D warnings, formatting, and independent review.

Keep database identifiers out of relation visitors and retain the statement delimiter. Add a separate default-off dialect capability and append the AST enum variant after SET and UNSET to preserve existing serde ordinals.
@osipovartem
osipovartem merged commit a65288a into feat/snowflake-schema-modifiers-20261113 Nov 26, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant