pub struct SelectStatement {
pub select_list: Vec<SelectItem>,
pub from: Option<FromClause>,
pub joins: Vec<JoinClause>,
pub traverse_clause: Option<TraverseClause>,
pub where_clause: Option<Expression>,
pub group_by: Vec<Expression>,
pub having: Option<Expression>,
pub order_by: Vec<OrderByItem>,
pub limit: Option<u64>,
pub offset: Option<u64>,
pub distinct: bool,
}Expand description
SELECT statement structure
Fields§
§select_list: Vec<SelectItem>Columns/expressions to select
from: Option<FromClause>FROM clause with table/entity sources
joins: Vec<JoinClause>JOIN clauses for multi-table queries
traverse_clause: Option<TraverseClause>TRAVERSE clause for graph patterns
where_clause: Option<Expression>WHERE clause for filtering
group_by: Vec<Expression>GROUP BY expressions
having: Option<Expression>HAVING clause for grouped filtering
order_by: Vec<OrderByItem>ORDER BY expressions
limit: Option<u64>LIMIT for result count restriction
offset: Option<u64>OFFSET for pagination
distinct: boolDISTINCT flag
Trait Implementations§
Source§impl Clone for SelectStatement
impl Clone for SelectStatement
Source§impl Debug for SelectStatement
impl Debug for SelectStatement
Source§impl<'de> Deserialize<'de> for SelectStatement
impl<'de> Deserialize<'de> for SelectStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SelectStatement
impl PartialEq for SelectStatement
Source§impl Serialize for SelectStatement
impl Serialize for SelectStatement
impl StructuralPartialEq for SelectStatement
Auto Trait Implementations§
impl Freeze for SelectStatement
impl RefUnwindSafe for SelectStatement
impl Send for SelectStatement
impl Sync for SelectStatement
impl Unpin for SelectStatement
impl UnsafeUnpin for SelectStatement
impl UnwindSafe for SelectStatement
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