pub struct SelectStatementBuilder { /* private fields */ }
Expand description
Builder for SelectStatement
.
Implementations§
Source§impl SelectStatementBuilder
impl SelectStatementBuilder
pub fn set_distinct(&mut self, value: bool) -> &mut Self
pub fn select_clause<VALUE: Into<SelectClause>>( &mut self, value: VALUE, ) -> &mut Self
pub fn from<VALUE: Into<KeyspaceQualifiedName>>( &mut self, value: VALUE, ) -> &mut Self
pub fn where_clause<VALUE: Into<WhereClause>>( &mut self, value: VALUE, ) -> &mut Self
pub fn group_by_clause<VALUE: Into<GroupByClause>>( &mut self, value: VALUE, ) -> &mut Self
pub fn order_by_clause<VALUE: Into<OrderByClause>>( &mut self, value: VALUE, ) -> &mut Self
pub fn per_partition_limit<VALUE: Into<Limit>>( &mut self, value: VALUE, ) -> &mut Self
pub fn limit<VALUE: Into<Limit>>(&mut self, value: VALUE) -> &mut Self
pub fn set_allow_filtering(&mut self, value: bool) -> &mut Self
pub fn set_bypass_cache(&mut self, value: bool) -> &mut Self
pub fn timeout<VALUE: Into<DurationLiteral>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<SelectStatement, SelectStatementBuilderError>
pub fn build(&self) -> Result<SelectStatement, SelectStatementBuilderError>
Source§impl SelectStatementBuilder
impl SelectStatementBuilder
Sourcepub fn distinct(&mut self) -> &mut Self
pub fn distinct(&mut self) -> &mut Self
Set DISTINCT on the statement
To undo this, use set_distinct(false)
Sourcepub fn allow_filtering(&mut self) -> &mut Self
pub fn allow_filtering(&mut self) -> &mut Self
Set ALLOW FILTERING on the statement
To undo this, use set_allow_filtering(false)
Sourcepub fn bypass_cache(&mut self) -> &mut Self
pub fn bypass_cache(&mut self) -> &mut Self
Set BYPASS CACHE on the statement
To undo this, use set_bypass_cache(false)
Trait Implementations§
Source§impl Clone for SelectStatementBuilder
impl Clone for SelectStatementBuilder
Source§fn clone(&self) -> SelectStatementBuilder
fn clone(&self) -> SelectStatementBuilder
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 SelectStatementBuilder
impl RefUnwindSafe for SelectStatementBuilder
impl Send for SelectStatementBuilder
impl Sync for SelectStatementBuilder
impl Unpin for SelectStatementBuilder
impl UnwindSafe for SelectStatementBuilder
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