pub struct SelectTreeBuilder { /* private fields */ }Expand description
Helper to build a SELECT query tree.
Implementations§
Source§impl SelectTreeBuilder
impl SelectTreeBuilder
Sourcepub fn columns(
self,
columns: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn columns( self, columns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Set the columns.
Sourcepub fn where_clause(self, clause: impl Into<String>) -> Self
pub fn where_clause(self, clause: impl Into<String>) -> Self
Set the WHERE clause.
Sourcepub fn join(
self,
join_type: impl Into<String>,
condition: impl Into<String>,
) -> Self
pub fn join( self, join_type: impl Into<String>, condition: impl Into<String>, ) -> Self
Add a JOIN.
Sourcepub fn build(self) -> QueryTreeView
pub fn build(self) -> QueryTreeView
Build the query tree view.
Trait Implementations§
Source§impl Debug for SelectTreeBuilder
impl Debug for SelectTreeBuilder
Source§impl Default for SelectTreeBuilder
impl Default for SelectTreeBuilder
Source§fn default() -> SelectTreeBuilder
fn default() -> SelectTreeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SelectTreeBuilder
impl RefUnwindSafe for SelectTreeBuilder
impl Send for SelectTreeBuilder
impl Sync for SelectTreeBuilder
impl Unpin for SelectTreeBuilder
impl UnwindSafe for SelectTreeBuilder
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