Skip to content

Conversation

osipovartem
Copy link

https://docs.snowflake.com/en/sql-reference/sql/create-database
Added support for

CREATE [ OR REPLACE ] [ TRANSIENT ] DATABASE [ IF NOT EXISTS ] <name>
   [ CLONE <source_schema>
       [ { AT | BEFORE } ( { TIMESTAMP => <timestamp> | OFFSET => <time_difference> | STATEMENT => <id> } ) ]
       [ IGNORE TABLES WITH INSUFFICIENT DATA RETENTION ]
       [ IGNORE HYBRID TABLES ] ]
   [ DATA_RETENTION_TIME_IN_DAYS = <integer> ]
   [ MAX_DATA_EXTENSION_TIME_IN_DAYS = <integer> ]
   [ EXTERNAL_VOLUME = <external_volume_name> ]
   [ CATALOG = <catalog_integration_name> ]
   [ REPLACE_INVALID_CHARACTERS = { TRUE | FALSE } ]
   [ DEFAULT_DDL_COLLATION = '<collation_specification>' ]
   [ STORAGE_SERIALIZATION_POLICY = { COMPATIBLE | OPTIMIZED } ]
   [ COMMENT = '<string_literal>' ]
   [ CATALOG_SYNC = '<snowflake_open_catalog_integration_name>' ]
   [ CATALOG_SYNC_NAMESPACE_MODE = { NEST | FLATTEN } ]
   [ CATALOG_SYNC_NAMESPACE_FLATTEN_DELIMITER = '<string_literal>' ]
   [ [ WITH ] TAG ( <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' , ... ] ) ]
   [ WITH CONTACT ( <purpose> = <contact_name> [ , <purpose> = <contact_name> ... ] ) ]

Related to Embucket/embucket#510

@osipovartem osipovartem force-pushed the issues/510_create_database branch from bf0f8f4 to 32795dc Compare July 11, 2025 16:13
Copy link

@Vedin Vedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall! Just a question about do we want to support everything create database related or we fine with this state for now

@osipovartem osipovartem merged commit 12655c2 into embucket-sync-df47.0.0-parser55.0.0 Jul 15, 2025
14 of 18 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.

2 participants