pub struct TableCreationOptions /* private fields */ Options for the table an ingest creates: the create table options of /insert/records/fromfiles.
Each setter sets its option as well as its value; an option without a setter can be given with set_option.
Implementations
pub fn set_type_id(&mut self, type_id: &str) -> &mut Self
pub fn is_no_error_if_exists(&self) -> bool
pub fn set_no_error_if_exists(&mut self, no_error_if_exists: bool) -> &mut Self
pub fn is_replicated(&self) -> bool
pub fn set_replicated(&mut self, replicated: bool) -> &mut Self
Sets whether the table is replicated.
pub fn foreign_keys(&self) -> Option<&[String]>
pub fn set_foreign_keys(&mut self, foreign_keys: Vec<String>) -> &mut Self
Sets the foreign keys, sent joined by commas; an empty list is ignored, with a warning.
pub fn foreign_shard_key(&self) -> Option<&str>
pub fn set_foreign_shard_key(&mut self, foreign_shard_key: &str) -> &mut Self
Sets the foreign shard key; an empty one is ignored, with a warning.
pub fn partition_type(&self) -> Option<PartitionType>
pub fn set_partition_type(&mut self, partition_type: PartitionType) -> &mut Self
pub fn partition_keys(&self) -> Option<&[String]>
pub fn set_partition_keys(&mut self, partition_keys: Vec<String>) -> &mut Self
Sets the partition keys, sent joined by commas; an empty list is ignored, with a warning.
pub fn partition_definitions(&self) -> Option<&[String]>
pub fn set_partition_definitions( &mut self, partition_definitions: Vec<String>, ) -> &mut Self
Sets the partition definitions, sent joined by commas; an empty list is ignored, with a warning.
pub fn is_automatic_partition(&self) -> bool
pub fn set_automatic_partition( &mut self, automatic_partition: bool, ) -> &mut Self
pub fn is_result_table(&self) -> bool
pub fn set_result_table(&mut self, result_table: bool) -> &mut Self
pub fn set_option(&mut self, key: &str, value: impl ToString) -> &mut Self
Sets any option, by name, over what the setters set.
Trait Implementations
impl Clone for TableCreationOptions
fn clone(&self) -> TableCreationOptions
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for TableCreationOptions
impl Default for TableCreationOptions
fn default() -> TableCreationOptions
impl Eq for TableCreationOptions
impl PartialEq for TableCreationOptions
fn eq(&self, other: &TableCreationOptions) -> bool
self and other values to be equal, and is used by ==.