use toasty_core::{
schema::db::{Index, TableId},
stmt,
};
#[derive(Debug)]
pub(crate) struct IndexPlan<'a> {
pub(crate) index: &'a Index,
pub(crate) index_filter: stmt::Expr,
pub(crate) result_filter: Option<stmt::Expr>,
pub(crate) post_filter: Option<stmt::Expr>,
pub(crate) pre_filter: Option<stmt::Expr>,
pub(crate) key_values: Option<stmt::Expr>,
pub(crate) has_pk_keys: bool,
}
impl IndexPlan<'_> {
pub(crate) fn table_id(&self) -> TableId {
self.index.on
}
}