pub struct SelectStatement {
pub items: Vec<SelectItem>,
pub from: Option<TableName>,
pub joins: Vec<JoinClause>,
pub expr: Option<Expression>,
pub group_by: Option<GroupByClause>,
pub having: Option<HavingClause>,
pub order_by: Option<OrderByClause>,
pub limit: Option<LimitClause>,
pub span: Range<usize>,
}Expand description
Represents a SELECT statement.
Fields§
§items: Vec<SelectItem>The items to select (columns, expressions, or *).
from: Option<TableName>The table to select from.
joins: Vec<JoinClause>Any JOIN clauses.
expr: Option<Expression>The WHERE clause selection expression.
group_by: Option<GroupByClause>The GROUP BY clause.
having: Option<HavingClause>The HAVING clause.
order_by: Option<OrderByClause>The ORDER BY clause.
limit: Option<LimitClause>The LIMIT clause.
span: Range<usize>The span of the SELECT statement.
Trait Implementations§
Source§impl AsDocument for SelectStatement
Available on crate feature oak-pretty-print only.
impl AsDocument for SelectStatement
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for SelectStatement
impl Clone for SelectStatement
Source§fn clone(&self) -> SelectStatement
fn clone(&self) -> SelectStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Serialize for SelectStatement
impl Serialize for SelectStatement
Source§impl ToSource for SelectStatement
impl ToSource for SelectStatement
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
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