Struct lumus_sql_builder::sqlite::Select
source · pub struct Select { /* private fields */ }
Implementations§
source§impl Select
impl Select
sourcepub fn new<T: Into<String>>(table: T) -> Select
pub fn new<T: Into<String>>(table: T) -> Select
Creates a new Select
instance with the specified table name.
§Example
use lumus_sql_builder::sqlite::Select;
Select::new("users").columns("name, age");
sourcepub fn distinct(&mut self) -> &mut Self
pub fn distinct(&mut self) -> &mut Self
Specifies that the select statement should return distinct rows.
sourcepub fn columns<T: Into<String>>(&mut self, columns: T) -> &mut Self
pub fn columns<T: Into<String>>(&mut self, columns: T) -> &mut Self
Specifies the columns to be selected in the query.
sourcepub fn group<T: Into<String>>(&mut self, group: T) -> &mut Self
pub fn group<T: Into<String>>(&mut self, group: T) -> &mut Self
Specifies the grouping for the query results.
sourcepub fn order<T: Into<String>>(&mut self, order: T) -> &mut Self
pub fn order<T: Into<String>>(&mut self, order: T) -> &mut Self
Specifies the ordering for the query results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnwindSafe for Select
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