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