@@ -157,6 +157,9 @@ pub struct CreateTableBuilder {
157157 pub base_location : Option < String > ,
158158 /// Optional external volume identifier.
159159 pub external_volume : Option < String > ,
160+ /// `WITH CONNECTION` clause.
161+ /// [BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_external_table_statement)
162+ pub with_connection : Option < ObjectName > ,
160163 /// Optional catalog name.
161164 pub catalog : Option < String > ,
162165 /// Optional catalog synchronization option.
@@ -241,6 +244,7 @@ impl CreateTableBuilder {
241244 with_tags : None ,
242245 base_location : None ,
243246 external_volume : None ,
247+ with_connection : None ,
244248 catalog : None ,
245249 catalog_sync : None ,
246250 storage_serialization_policy : None ,
@@ -497,6 +501,11 @@ impl CreateTableBuilder {
497501 self . external_volume = external_volume;
498502 self
499503 }
504+ /// Set the `WITH CONNECTION` clause.
505+ pub fn with_connection ( mut self , with_connection : Option < ObjectName > ) -> Self {
506+ self . with_connection = with_connection;
507+ self
508+ }
500509 /// Set the catalog name for the table.
501510 pub fn catalog ( mut self , catalog : Option < String > ) -> Self {
502511 self . catalog = catalog;
@@ -630,6 +639,7 @@ impl CreateTableBuilder {
630639 with_tags : self . with_tags ,
631640 base_location : self . base_location ,
632641 external_volume : self . external_volume ,
642+ with_connection : self . with_connection ,
633643 catalog : self . catalog ,
634644 catalog_sync : self . catalog_sync ,
635645 storage_serialization_policy : self . storage_serialization_policy ,
@@ -714,6 +724,7 @@ impl From<CreateTable> for CreateTableBuilder {
714724 with_tags : table. with_tags ,
715725 base_location : table. base_location ,
716726 external_volume : table. external_volume ,
727+ with_connection : table. with_connection ,
717728 catalog : table. catalog ,
718729 catalog_sync : table. catalog_sync ,
719730 storage_serialization_policy : table. storage_serialization_policy ,
0 commit comments