Type Alias proof_of_sql::base::commitment::QueryCommitments
source · pub type QueryCommitments<C> = HashMap<TableRef, TableCommitment<C>>;
Expand description
The commitments for all of the tables in a query.
Simply maps table refs to table commitments, and implements the following traits…
Aliased Type§
struct QueryCommitments<C> { /* private fields */ }
Trait Implementations§
source§impl<C> CommitmentAccessor<<Vec<C> as VecCommitmentExt>::DecompressedCommitment> for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
impl<C> CommitmentAccessor<<Vec<C> as VecCommitmentExt>::DecompressedCommitment> for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
source§fn get_commitment(
&self,
column: ColumnRef,
) -> <Vec<C> as VecCommitmentExt>::DecompressedCommitment ⓘ
fn get_commitment( &self, column: ColumnRef, ) -> <Vec<C> as VecCommitmentExt>::DecompressedCommitment ⓘ
Return the full table column commitment
source§impl<C> MetadataAccessor for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
impl<C> MetadataAccessor for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
source§impl<C> QueryCommitmentsExt<C> for QueryCommitments<C>
impl<C> QueryCommitmentsExt<C> for QueryCommitments<C>
source§fn from_accessor_with_max_bounds(
columns: impl IntoIterator<Item = ColumnRef>,
accessor: &impl CommitmentAccessor<<Vec<C> as VecCommitmentExt>::DecompressedCommitment>,
) -> Self
fn from_accessor_with_max_bounds( columns: impl IntoIterator<Item = ColumnRef>, accessor: &impl CommitmentAccessor<<Vec<C> as VecCommitmentExt>::DecompressedCommitment>, ) -> Self
Create a new
QueryCommitments
from a collection of columns and an accessor.source§impl<C> SchemaAccessor for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
impl<C> SchemaAccessor for QueryCommitments<C>where
Vec<C>: VecCommitmentExt,
source§fn lookup_column(
&self,
table_ref: TableRef,
column_id: Identifier,
) -> Option<ColumnType>
fn lookup_column( &self, table_ref: TableRef, column_id: Identifier, ) -> Option<ColumnType>
Lookup the column’s data type in the specified table Read more
source§fn lookup_schema(&self, table_ref: TableRef) -> Vec<(Identifier, ColumnType)>
fn lookup_schema(&self, table_ref: TableRef) -> Vec<(Identifier, ColumnType)>
Lookup all the column names and their data types in the specified table Read more