pub struct CreateTableBuilder { /* private fields */ }Expand description
Builder for creating a table
Implementations§
Source§impl CreateTableBuilder
impl CreateTableBuilder
Sourcepub fn with_columns<I>(self, columns: I) -> Selfwhere
I: IntoIterator<Item = Column>,
pub fn with_columns<I>(self, columns: I) -> Selfwhere
I: IntoIterator<Item = Column>,
The array of Column definitions of the table’s columns.
Sourcepub fn with_storage_location(
self,
storage_location: impl Into<Option<String>>,
) -> Self
pub fn with_storage_location( self, storage_location: impl Into<Option<String>>, ) -> Self
Storage root URL for external table.
Sourcepub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
pub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
User-provided free-form text description.
Sourcepub fn with_properties<I, K, V>(self, properties: I) -> Self
pub fn with_properties<I, K, V>(self, properties: I) -> Self
A map of key-value properties attached to the securable.
Sourcepub fn with_view_definition(
self,
view_definition: impl Into<Option<String>>,
) -> Self
pub fn with_view_definition( self, view_definition: impl Into<Option<String>>, ) -> Self
Definition text for view-like table types (VIEW, MATERIALIZED_VIEW, STREAMING_TABLE, METRIC_VIEW). The format depends on the table type: SQL for views, YAML for metric views. Required for METRIC_VIEW.
Sourcepub fn with_view_dependencies(
self,
view_dependencies: impl Into<Option<DependencyList>>,
) -> Self
pub fn with_view_dependencies( self, view_dependencies: impl Into<Option<DependencyList>>, ) -> Self
Tables and functions the view-like table reads. For metric views the server derives this from view_definition and rejects a supplied list that diverges from the derived set (the definition is the single source of truth).
Trait Implementations§
Source§impl IntoFuture for CreateTableBuilder
impl IntoFuture for CreateTableBuilder
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateTableBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateTableBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CreateTableBuilder
impl !UnwindSafe for CreateTableBuilder
impl Freeze for CreateTableBuilder
impl Send for CreateTableBuilder
impl Sync for CreateTableBuilder
impl Unpin for CreateTableBuilder
impl UnsafeUnpin for CreateTableBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more