mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
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
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:
parent
6932f4ad65
commit
ec0026d136
8 changed files with 663 additions and 37 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue