pub struct CreateTableRequest {
pub name: String,
pub schema_name: String,
pub catalog_name: String,
pub table_type: i32,
pub data_source_format: i32,
pub columns: Vec<Column>,
pub storage_location: Option<String>,
pub comment: Option<String>,
pub properties: HashMap<String, String>,
pub view_definition: Option<String>,
pub view_dependencies: Option<DependencyList>,
}Expand description
Create a table
WARNING: this API is experimental and subject to change.
Fields§
§name: StringName of table, relative to parent schema.
schema_name: StringName of parent schema relative to its parent catalog.
catalog_name: StringName of parent catalog.
table_type: i32§data_source_format: i32§columns: Vec<Column>The array of Column definitions of the table’s columns.
storage_location: Option<String>Storage root URL for external table.
comment: Option<String>User-provided free-form text description.
properties: HashMap<String, String>A map of key-value properties attached to the securable.
view_definition: Option<String>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.
view_dependencies: Option<DependencyList>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).
Implementations§
Source§impl CreateTableRequest
impl CreateTableRequest
Sourcepub fn table_type(&self) -> TableType
pub fn table_type(&self) -> TableType
Returns the enum value of table_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_table_type(&mut self, value: TableType)
pub fn set_table_type(&mut self, value: TableType)
Sets table_type to the provided enum value.
Sourcepub fn data_source_format(&self) -> DataSourceFormat
pub fn data_source_format(&self) -> DataSourceFormat
Returns the enum value of data_source_format, or the default if the field is set to an invalid enum value.
Sourcepub fn set_data_source_format(&mut self, value: DataSourceFormat)
pub fn set_data_source_format(&mut self, value: DataSourceFormat)
Sets data_source_format to the provided enum value.
Sourcepub fn storage_location(&self) -> &str
pub fn storage_location(&self) -> &str
Returns the value of storage_location, or the default value if storage_location is unset.
Sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment, or the default value if comment is unset.
Sourcepub fn view_definition(&self) -> &str
pub fn view_definition(&self) -> &str
Returns the value of view_definition, or the default value if view_definition is unset.
Trait Implementations§
Source§impl Clone for CreateTableRequest
impl Clone for CreateTableRequest
Source§fn clone(&self) -> CreateTableRequest
fn clone(&self) -> CreateTableRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateTableRequest
impl Debug for CreateTableRequest
Source§impl Default for CreateTableRequest
impl Default for CreateTableRequest
§impl<'de> Deserialize<'de> for CreateTableRequest
impl<'de> Deserialize<'de> for CreateTableRequest
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for CreateTableRequest
impl Message for CreateTableRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.