Skip to content

Snowflake create database #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: embucket-sync-df47.0.0-parser55.0.0
Choose a base branch
from

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
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