Struct spacetimedb_vm::expr::QueryExpr
source · pub struct QueryExpr {
pub source: SourceExpr,
pub query: Vec<Query>,
}Fields§
§source: SourceExpr§query: Vec<Query>Implementations§
source§impl QueryExpr
impl QueryExpr
pub fn new<T: Into<SourceExpr>>(source: T) -> Self
sourcepub fn sources(&self) -> QueryExprSources ⓘ
pub fn sources(&self) -> QueryExprSources ⓘ
Iterate over all SourceExprs involved in the QueryExpr.
Sources are yielded from left to right. Duplicates are not filtered out.
pub fn with_index_eq( self, table: DbTable, col_id: ColId, value: AlgebraicValue ) -> Self
pub fn with_index_lower_bound( self, table: DbTable, col_id: ColId, value: AlgebraicValue, inclusive: bool ) -> Self
pub fn with_index_upper_bound( self, table: DbTable, col_id: ColId, value: AlgebraicValue, inclusive: bool ) -> Self
pub fn with_select<O>(self, op: O) -> Selfwhere O: Into<ColumnOp>,
pub fn with_select_cmp<LHS, RHS, O>(self, op: O, lhs: LHS, rhs: RHS) -> Selfwhere LHS: Into<FieldExpr>, RHS: Into<FieldExpr>, O: Into<OpQuery>,
pub fn with_project( self, cols: &[FieldExpr], wildcard_table_id: Option<TableId> ) -> Self
pub fn with_join_inner( self, with: impl Into<QueryExpr>, lhs: FieldName, rhs: FieldName ) -> Self
pub fn optimize(self) -> Self
Trait Implementations§
source§impl Ord for QueryExpr
impl Ord for QueryExpr
source§impl PartialEq for QueryExpr
impl PartialEq for QueryExpr
source§impl PartialOrd for QueryExpr
impl PartialOrd for QueryExpr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for QueryExpr
impl StructuralEq for QueryExpr
impl StructuralPartialEq for QueryExpr
Auto Trait Implementations§
impl RefUnwindSafe for QueryExpr
impl Send for QueryExpr
impl Sync for QueryExpr
impl Unpin for QueryExpr
impl UnwindSafe for QueryExpr
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