@@ -26,7 +26,7 @@ use sqlparser_derive::{Visit, VisitMut};
2626
2727use crate :: ast:: ddl:: CreateSnowflakeDatabase ;
2828use crate :: ast:: {
29- CatalogSyncNamespaceMode , ObjectName , Statement , StorageSerializationPolicy , Tag ,
29+ CatalogSyncNamespaceMode , ContactEntry , ObjectName , Statement , StorageSerializationPolicy , Tag ,
3030} ;
3131use crate :: parser:: ParserError ;
3232
@@ -51,7 +51,6 @@ use crate::parser::ParserError;
5151/// )
5252/// ```
5353///
54- /// [1]: crate::ast::Statement::CreateSnowflakeDatabase
5554#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
5655#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
5756#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
@@ -73,7 +72,7 @@ pub struct CreateDatabaseBuilder {
7372 pub catalog_sync_namespace_mode : Option < CatalogSyncNamespaceMode > ,
7473 pub catalog_sync_namespace_flatten_delimiter : Option < String > ,
7574 pub with_tags : Option < Vec < Tag > > ,
76- pub with_contacts : Option < Vec < ( String , String ) > > ,
75+ pub with_contacts : Option < Vec < ContactEntry > > ,
7776}
7877
7978impl CreateDatabaseBuilder {
@@ -192,7 +191,7 @@ impl CreateDatabaseBuilder {
192191 self
193192 }
194193
195- pub fn with_contacts ( mut self , with_contacts : Option < Vec < ( String , String ) > > ) -> Self {
194+ pub fn with_contacts ( mut self , with_contacts : Option < Vec < ContactEntry > > ) -> Self {
196195 self . with_contacts = with_contacts;
197196 self
198197 }
@@ -275,7 +274,6 @@ impl TryFrom<Statement> for CreateDatabaseBuilder {
275274#[ cfg( test) ]
276275mod tests {
277276 use crate :: ast:: helpers:: stmt_create_database:: CreateDatabaseBuilder ;
278- use crate :: ast:: helpers:: stmt_create_table:: CreateTableBuilder ;
279277 use crate :: ast:: { Ident , ObjectName , Statement } ;
280278 use crate :: parser:: ParserError ;
281279
0 commit comments