pub struct CreateTableArgs {
pub database: String,
pub table: String,
pub description: Option<String>,
pub replication: u32,
pub partition: Partition,
pub enable_dynamic_field: Option<bool>,
pub schema: TableSchema,
}Expand description
click https://cloud.baidu.com/doc/VDB/s/flrsob0zr for more details create table args, response with crate::mochow::api::CommonResponse
Fields§
§database: String§table: String§description: Option<String>the description of table
replication: u32the number of replicas(including primary replica) for a single tablet, range of [1, 10], for high availability, it is recommended >= 3, note: the number of relicas needs to less than or equal to the number of DataNodes
partition: PartitionThe number of partitions in the table, with a value range of [1,1000]. Suggest evaluating the number of partitions based on the expected total number of records. Suggest controlling the number of records in a single partition between 1 million and 10 million.
enable_dynamic_field: Option<bool>is suppport dynamic field, default is false
schema: TableSchemaschema args for table
Trait Implementations§
Source§impl Clone for CreateTableArgs
impl Clone for CreateTableArgs
Source§fn clone(&self) -> CreateTableArgs
fn clone(&self) -> CreateTableArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTableArgs
impl Debug for CreateTableArgs
Source§impl IntoRequest for CreateTableArgs
impl IntoRequest for CreateTableArgs
fn into_request( self, config: &ClientConfiguration, client: &ClientWithMiddleware, ) -> RequestBuilder
Auto Trait Implementations§
impl Freeze for CreateTableArgs
impl RefUnwindSafe for CreateTableArgs
impl Send for CreateTableArgs
impl Sync for CreateTableArgs
impl Unpin for CreateTableArgs
impl UnwindSafe for CreateTableArgs
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