pub struct Select {
pub distinct: bool,
pub json: bool,
pub table_name: FQName,
pub columns: Vec<SelectElement>,
pub where_clause: Vec<RelationElement>,
pub order: Option<OrderClause>,
pub limit: Option<i32>,
pub filtering: bool,
}Expand description
data for select statements
Fields§
§distinct: boolif true DISTINCT results
json: boolif true JSON reslts
table_name: FQNameThe table name.
columns: Vec<SelectElement>the list of elements to select.
where_clause: Vec<RelationElement>the where clause
order: Option<OrderClause>the optional ordering
limit: Option<i32>the number of items to return
filtering: boolif true ALLOW FILTERING is displayed
Implementations§
Source§impl Select
impl Select
Sourcepub fn select_names(&self) -> Vec<String>
pub fn select_names(&self) -> Vec<String>
return the column names selected does not return functions.
Sourcepub fn select_alias(&self) -> Vec<Identifier>
pub fn select_alias(&self) -> Vec<Identifier>
return the aliased column names. If the column is not aliased the base column name is returned. does not return functions.
Trait Implementations§
impl StructuralPartialEq for Select
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more