use crate::db::{
access::AccessPlan,
query::plan::{
CoveringProjectionContext, OrderSpec,
covering_index_adjacent_distinct_eligible as plan_adjacent,
covering_index_projection_context as plan_covering_context,
},
};
pub(super) fn covering_index_projection_context<K>(
access: &AccessPlan<K>,
order: Option<&OrderSpec>,
target_field: &str,
primary_key_name: &'static str,
) -> Option<CoveringProjectionContext> {
plan_covering_context(access, order, target_field, primary_key_name)
}
pub(super) const fn covering_index_adjacent_distinct_eligible(
context: CoveringProjectionContext,
) -> bool {
plan_adjacent(context)
}