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 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<'a> Freeze for SqlQueryBuilder<'a>
impl<'a> RefUnwindSafe for SqlQueryBuilder<'a>
impl<'a> Send for SqlQueryBuilder<'a>
impl<'a> Sync for SqlQueryBuilder<'a>
impl<'a> Unpin for SqlQueryBuilder<'a>
impl<'a> UnwindSafe for SqlQueryBuilder<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more