pub struct SelectBuilder { /* private fields */ }Implementations§
Source§impl SelectBuilder
impl SelectBuilder
pub fn new(table: &str) -> Self
pub fn raw() -> Self
pub fn columns_raw(self, cols: &[&str]) -> Self
pub fn columns_typed(self, cols: &[&dyn ColumnRef]) -> Self
pub fn join(self, table: &str, on: JoinCondition) -> Self
pub fn left_join(self, table: &str, on: JoinCondition) -> Self
pub fn order_by(self, ob: OrderBy) -> Self
pub fn limit(self, n: i64) -> Self
pub fn offset(self, n: i64) -> Self
pub fn column_expr(self, expr: &str, alias: &str) -> Self
pub fn to_sql_for(&self, dialect: Dialect) -> (String, Vec<Value>)
pub fn to_sql(&self) -> (String, Vec<Value>)
pub fn to_count_sql_for(&self, dialect: Dialect) -> (String, Vec<Value>)
pub fn to_count_sql(&self) -> (String, Vec<Value>)
pub fn to_exists_sql_for(&self, dialect: Dialect) -> (String, Vec<Value>)
pub fn to_exists_sql(&self) -> (String, Vec<Value>)
pub fn table_name(&self) -> &str
Auto Trait Implementations§
impl Freeze for SelectBuilder
impl RefUnwindSafe for SelectBuilder
impl Send for SelectBuilder
impl Sync for SelectBuilder
impl Unpin for SelectBuilder
impl UnsafeUnpin 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