Struct scylladb_parse::SelectStatementBuilder
source · [−]pub struct SelectStatementBuilder { /* private fields */ }Expand description
Builder for SelectStatement.
Implementations
sourceimpl 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>
sourceimpl 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
sourceimpl Clone for SelectStatementBuilder
impl Clone for SelectStatementBuilder
sourcefn clone(&self) -> SelectStatementBuilder
fn clone(&self) -> SelectStatementBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SelectStatementBuilder
impl Send for SelectStatementBuilder
impl Sync for SelectStatementBuilder
impl Unpin for SelectStatementBuilder
impl UnwindSafe for SelectStatementBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more