pub struct SelectBuilder {
pub q: Select,
}Expand description
See Select for field descriptions. Call build() to get a finished query
object.
Fields§
§q: SelectImplementations§
Source§impl SelectBuilder
impl SelectBuilder
pub fn distinct(self) -> Self
pub fn with(self, w: With) -> Self
pub fn return_(self, v: Expr) -> Self
pub fn return_named(self, name: impl ToString, v: Expr) -> Self
pub fn return_field(self, f: &Field) -> Self
pub fn return_fields(self, f: &[&Field]) -> Self
pub fn returns_from_iter(self, f: impl Iterator<Item = Returning>) -> Self
pub fn join(self, join: Join) -> Self
pub fn where_(self, predicate: Expr) -> Self
pub fn group(self, clauses: Vec<Expr>) -> Self
pub fn order(self, expr: Expr, order: Order) -> Self
pub fn order_from_iter( self, clauses: impl Iterator<Item = (Expr, Order)>, ) -> Self
Sourcepub fn junction(self, j: SelectJunction) -> Self
pub fn junction(self, j: SelectJunction) -> Self
Add a UNION/INTERSECT/EXCEPT junction to the query.
Sourcepub fn build_migration(self) -> Select
pub fn build_migration(self) -> Select
Produce a migration for use in version pre/post-migration.
Sourcepub fn build_query(self, name: impl ToString, res_count: QueryResCount) -> Query
pub fn build_query(self, name: impl ToString, res_count: QueryResCount) -> Query
pub fn build_query_named_res( self, name: impl ToString, res_count: QueryResCount, res_name: impl ToString, ) -> Query
Auto Trait Implementations§
impl Freeze for SelectBuilder
impl !RefUnwindSafe for SelectBuilder
impl !Send for SelectBuilder
impl !Sync for SelectBuilder
impl Unpin for SelectBuilder
impl !UnwindSafe for SelectBuilder
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