pub struct CreateTableStatementBuilder { /* private fields */ }
Expand description
Builder for CreateTableStatement
.
Implementations§
Source§impl CreateTableStatementBuilder
impl CreateTableStatementBuilder
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn table<VALUE: Into<KeyspaceQualifiedName>>( &mut self, value: VALUE, ) -> &mut Self
pub fn columns(&mut self, value: Vec<ColumnDefinition>) -> &mut Self
pub fn primary_key<VALUE: Into<PrimaryKey>>( &mut self, value: VALUE, ) -> &mut Self
pub fn options(&mut self, value: TableOpts) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CreateTableStatement, CreateTableStatementBuilderError>
pub fn build( &self, ) -> Result<CreateTableStatement, CreateTableStatementBuilderError>
Source§impl CreateTableStatementBuilder
impl CreateTableStatementBuilder
Sourcepub fn if_not_exists(&mut self) -> &mut Self
pub fn if_not_exists(&mut self) -> &mut Self
Set IF NOT EXISTS on the statement.
To undo this, use set_if_not_exists(false)
.
Trait Implementations§
Source§impl Clone for CreateTableStatementBuilder
impl Clone for CreateTableStatementBuilder
Source§fn clone(&self) -> CreateTableStatementBuilder
fn clone(&self) -> CreateTableStatementBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateTableStatementBuilder
impl RefUnwindSafe for CreateTableStatementBuilder
impl Send for CreateTableStatementBuilder
impl Sync for CreateTableStatementBuilder
impl Unpin for CreateTableStatementBuilder
impl UnwindSafe for CreateTableStatementBuilder
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