pub struct SqlWriter { /* private fields */ }Implementations§
Source§impl SqlWriter
impl SqlWriter
pub fn new(head: impl ToHead) -> Self
pub fn into_builder(self) -> QueryBuilder<'static, Postgres>
Sourcepub fn query_builder_mut(&mut self) -> &mut QueryBuilder<'static, Postgres>
pub fn query_builder_mut(&mut self) -> &mut QueryBuilder<'static, Postgres>
Get mutable access to the underlying QueryBuilder for advanced operations
pub fn push_joins(&mut self, joins: &[JoinPath], base_table: &str)
pub fn push_where<F: Filterable>(&mut self, expr: &Expression<F>)
pub fn push_where_raw(&mut self, build: impl FnMut(&mut SqlWriter))
pub fn push_sort<S: Sortable>(&mut self, sort: &SortOrder<S>)
pub fn push_order_by_raw(&mut self, build: impl FnMut(&mut SqlWriter))
pub fn push_group_by_columns(&mut self, columns: &[QualifiedColumn])
pub fn push_having(&mut self, build: impl FnMut(&mut SqlWriter))
pub fn push_pagination(&mut self, p: &Pagination)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlWriter
impl !RefUnwindSafe for SqlWriter
impl Send for SqlWriter
impl Sync for SqlWriter
impl Unpin for SqlWriter
impl UnsafeUnpin for SqlWriter
impl !UnwindSafe for SqlWriter
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> GetDeleteMarker for T
impl<T> GetDeleteMarker for T
default fn delete_marker_field() -> Option<&'static str>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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