Struct proof_of_sql::sql::parse::QueryExpr   
source · pub struct QueryExpr<C: Commitment> { /* private fields */ }Expand description
A QueryExpr represents a Proof of SQL query that can be executed against a database.
It consists of a DynProofPlan for provable components and a vector of OwnedTablePostprocessing for the rest.
Implementations§
source§impl<C: Commitment> QueryExpr<C>
 
impl<C: Commitment> QueryExpr<C>
sourcepub fn new(
    proof_expr: DynProofPlan<C>,
    postprocessing: Vec<OwnedTablePostprocessing>,
) -> Self
 
pub fn new( proof_expr: DynProofPlan<C>, postprocessing: Vec<OwnedTablePostprocessing>, ) -> Self
Creates a new QueryExpr with the given DynProofPlan and OwnedTablePostprocessing.
sourcepub fn try_new(
    ast: SelectStatement,
    default_schema: Identifier,
    schema_accessor: &dyn SchemaAccessor,
) -> Result<Self, ConversionError>
 
pub fn try_new( ast: SelectStatement, default_schema: Identifier, schema_accessor: &dyn SchemaAccessor, ) -> Result<Self, ConversionError>
Parse an intermediate AST SelectStatement into a QueryExpr.
sourcepub fn proof_expr(&self) -> &DynProofPlan<C>
 
pub fn proof_expr(&self) -> &DynProofPlan<C>
Immutable access to this query’s provable filter expression.
sourcepub fn postprocessing(&self) -> &[OwnedTablePostprocessing]
 
pub fn postprocessing(&self) -> &[OwnedTablePostprocessing]
Immutable access to this query’s post-proof result transform expression.
Trait Implementations§
source§impl<C: Commitment> Debug for QueryExpr<C>
 
impl<C: Commitment> Debug for QueryExpr<C>
source§impl<'de, C> Deserialize<'de> for QueryExpr<C>where
    C: Deserialize<'de> + Commitment,
 
impl<'de, C> Deserialize<'de> for QueryExpr<C>where
    C: Deserialize<'de> + Commitment,
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
impl<C: Commitment> StructuralPartialEq for QueryExpr<C>
Auto Trait Implementations§
impl<C> Freeze for QueryExpr<C>
impl<C> RefUnwindSafe for QueryExpr<C>
impl<C> Send for QueryExpr<C>
impl<C> Sync for QueryExpr<C>
impl<C> Unpin for QueryExpr<C>
impl<C> UnwindSafe for QueryExpr<C>
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
source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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