Snowflake create database (#1939)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run

This commit is contained in:
Artem Osipov 2025-08-01 14:56:21 +03:00 committed by GitHub
parent 6932f4ad65
commit ec0026d136
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 663 additions and 37 deletions

View file

@ -5054,7 +5054,22 @@ impl<'a> Parser<'a> {
if_not_exists: ine,
location,
managed_location,
or_replace: false,
transient: false,
clone,
data_retention_time_in_days: None,
max_data_extension_time_in_days: None,
external_volume: None,
catalog: None,
replace_invalid_characters: None,
default_ddl_collation: None,
storage_serialization_policy: None,
comment: None,
catalog_sync: None,
catalog_sync_namespace_mode: None,
catalog_sync_namespace_flatten_delimiter: None,
with_tags: None,
with_contacts: None,
})
}
@ -9763,6 +9778,15 @@ impl<'a> Parser<'a> {
}
}
/// Parse a boolean string
pub(crate) fn parse_boolean_string(&mut self) -> Result<bool, ParserError> {
match self.parse_one_of_keywords(&[Keyword::TRUE, Keyword::FALSE]) {
Some(Keyword::TRUE) => Ok(true),
Some(Keyword::FALSE) => Ok(false),
_ => self.expected("TRUE or FALSE", self.peek_token()),
}
}
/// Parse a literal unicode normalization clause
pub fn parse_unicode_is_normalized(&mut self, expr: Expr) -> Result<Expr, ParserError> {
let neg = self.parse_keyword(Keyword::NOT);