pub type QueryCommitments<C> = IndexMap<TableRef, TableCommitment<C>, BuildHasherDefault<AHasher>>;
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§
pub struct QueryCommitments<C> { /* private fields */ }
Trait Implementations§
Source§impl<C: Commitment> CommitmentAccessor<C> for QueryCommitments<C>
§Panics
Panics if the commitment for the table or column cannot be found.
impl<C: Commitment> CommitmentAccessor<C> for QueryCommitments<C>
§Panics
Panics if the commitment for the table or column cannot be found.
Source§fn get_commitment(&self, table_ref: &TableRef, column_id: &Ident) -> C
fn get_commitment(&self, table_ref: &TableRef, column_id: &Ident) -> C
Return the full table column commitment
Source§impl<C: Commitment> MetadataAccessor for QueryCommitments<C>
impl<C: Commitment> MetadataAccessor for QueryCommitments<C>
Source§impl<C: Commitment> QueryCommitmentsExt<C> for QueryCommitments<C>
impl<C: Commitment> QueryCommitmentsExt<C> for QueryCommitments<C>
Source§fn from_accessor_with_max_bounds(
columns: impl IntoIterator<Item = ColumnRef>,
accessor: &(impl CommitmentAccessor<C> + SchemaAccessor),
) -> Self
fn from_accessor_with_max_bounds( columns: impl IntoIterator<Item = ColumnRef>, accessor: &(impl CommitmentAccessor<C> + SchemaAccessor), ) -> Self
Create a new
QueryCommitments
from a collection of columns and an accessor.Source§impl<C: Commitment> SchemaAccessor for QueryCommitments<C>
impl<C: Commitment> SchemaAccessor for QueryCommitments<C>
Source§fn lookup_schema(&self, table_ref: &TableRef) -> Vec<(Ident, ColumnType)>
fn lookup_schema(&self, table_ref: &TableRef) -> Vec<(Ident, ColumnType)>
§Panics
Panics if the column metadata cannot be found.
Source§fn lookup_column(
&self,
table_ref: &TableRef,
column_id: &Ident,
) -> Option<ColumnType>
fn lookup_column( &self, table_ref: &TableRef, column_id: &Ident, ) -> Option<ColumnType>
Lookup the column’s data type in the specified table Read more