|
17 | 17 |
|
18 | 18 | #[cfg(not(feature = "std"))] |
19 | 19 | use crate::alloc::string::ToString; |
20 | | -use crate::ast::helpers::stmt_create_database::CreateDatabaseBuilder; |
21 | 20 | use crate::ast::helpers::key_value_options::{ |
22 | 21 | KeyValueOption, KeyValueOptionType, KeyValueOptions, KeyValueOptionsDelimiter, |
23 | 22 | }; |
| 23 | +use crate::ast::helpers::stmt_create_database::CreateDatabaseBuilder; |
24 | 24 | use crate::ast::helpers::stmt_create_table::CreateTableBuilder; |
25 | 25 | use crate::ast::helpers::stmt_data_loading::{ |
26 | 26 | FileStagingCommand, StageLoadSelectItem, StageLoadSelectItemKind, StageParamsObject, |
27 | 27 | }; |
28 | | -use crate::ast::{CatalogSyncNamespaceMode, ColumnOption, ColumnPolicy, ColumnPolicyProperty, ContactEntry, CopyIntoSnowflakeKind, DollarQuotedString, Ident, IdentityParameters, IdentityProperty, IdentityPropertyFormatKind, IdentityPropertyKind, IdentityPropertyOrder, ObjectName, ObjectNamePart, RowAccessPolicy, ShowObjects, SqlOption, Statement, StorageSerializationPolicy, TagsColumnOption, WrappedCollection}; |
| 28 | +use crate::ast::{ |
| 29 | + CatalogSyncNamespaceMode, ColumnOption, ColumnPolicy, ColumnPolicyProperty, ContactEntry, |
| 30 | + CopyIntoSnowflakeKind, DollarQuotedString, Ident, IdentityParameters, IdentityProperty, |
| 31 | + IdentityPropertyFormatKind, IdentityPropertyKind, IdentityPropertyOrder, ObjectName, |
| 32 | + ObjectNamePart, RowAccessPolicy, ShowObjects, SqlOption, Statement, StorageSerializationPolicy, |
| 33 | + TagsColumnOption, WrappedCollection, |
| 34 | +}; |
29 | 35 | use crate::dialect::{Dialect, Precedence}; |
30 | 36 | use crate::keywords::Keyword; |
31 | 37 | use crate::parser::{IsOptional, Parser, ParserError}; |
@@ -836,7 +842,7 @@ pub fn parse_create_database( |
836 | 842 | let purpose = p.parse_identifier()?.value; |
837 | 843 | p.expect_token(&Token::Eq)?; |
838 | 844 | let contact = p.parse_identifier()?.value; |
839 | | - Ok(ContactEntry { purpose, contact }) |
| 845 | + Ok(ContactEntry { purpose, contact }) |
840 | 846 | })?; |
841 | 847 | parser.expect_token(&Token::RParen)?; |
842 | 848 | builder = builder.with_contacts(Some(contacts)); |
|
0 commit comments