pub struct SelectStatement {Show 13 fields
pub vector_index: Option<Box<SqlVectorIndexSearch>>,
pub projection: Vec<SelectProjection>,
pub distinct: bool,
pub from: Option<SqlTableName>,
pub from_alias: Option<String>,
pub joins: Vec<SqlJoin>,
pub selection: Option<SqlPredicate>,
pub group_by: Vec<SqlColumnRef>,
pub having: Option<SqlPredicate>,
pub order_by: Vec<SqlOrderItem>,
pub limit: Option<SqlBound>,
pub offset: Option<SqlBound>,
pub lock_strength: Option<SqlLockStrength>,
}Fields§
§vector_index: Option<Box<SqlVectorIndexSearch>>§projection: Vec<SelectProjection>§distinct: bool§from: Option<SqlTableName>None for a FROM-less SELECT (e.g. SELECT version();): the
projection is evaluated exactly once against an implicit row with no
column bindings, so any column reference in it is rejected the same
way an unresolvable column against a real table would be.
from_alias: Option<String>§joins: Vec<SqlJoin>§selection: Option<SqlPredicate>§group_by: Vec<SqlColumnRef>§having: Option<SqlPredicate>§order_by: Vec<SqlOrderItem>§limit: Option<SqlBound>§offset: Option<SqlBound>§lock_strength: Option<SqlLockStrength>Implementations§
Source§impl SelectStatement
impl SelectStatement
Sourcepub fn from_table(&self) -> &SqlTableName
pub fn from_table(&self) -> &SqlTableName
The base table, for every code path that only ever runs on a real
table (catalog resolution, access-path selection, join planning, row
scanning). FROM-less selects never reach these paths — they’re
handled by a separate, earlier branch — so None here is a caller
bug, not a user-facing state.
Trait Implementations§
Source§impl Clone for SelectStatement
impl Clone for SelectStatement
Source§impl Debug for SelectStatement
impl Debug for SelectStatement
impl Eq for SelectStatement
Source§impl PartialEq for SelectStatement
impl PartialEq 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