Struct good_ormning::pg::SelectBuilder
source · 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 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 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 !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