Struct data_pager::SqlQueryBuilder
source · pub struct SqlQueryBuilder<'a> { /* private fields */ }Expand description
Builder for SqlQuery.
Implementations§
source§impl<'a> SqlQueryBuilder<'a>
impl<'a> SqlQueryBuilder<'a>
sourcepub fn source<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
source table or view
sourcepub fn projection<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn projection<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
fields to include in the result
sourcepub fn filter<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn filter<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
filter condition (the WHERE clause)
sourcepub fn order<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn order<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
sort order (the ORDER BY clause)
sourcepub fn cursor<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn cursor<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
previous page cursor, in base64 (right now this is just the number of items to skip)
sourcepub fn private_build(&self) -> Result<SqlQuery<'a>, SqlQueryBuilderError>
pub fn private_build(&self) -> Result<SqlQuery<'a>, SqlQueryBuilderError>
Trait Implementations§
source§impl<'a> Clone for SqlQueryBuilder<'a>
impl<'a> Clone for SqlQueryBuilder<'a>
source§fn clone(&self) -> SqlQueryBuilder<'a>
fn clone(&self) -> SqlQueryBuilder<'a>
Returns a copy 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 more