use crate::db::{
access::AccessPlan,
executor::aggregate::{
CoveringProjectionFacts, OrderSpec,
plan_covering_index_adjacent_distinct_eligible as plan_adjacent,
plan_covering_index_projection_facts as plan_covering_facts,
},
};
pub(super) fn covering_index_projection_facts<K>(
access: &AccessPlan<K>,
order: Option<&OrderSpec>,
target_field: &str,
primary_key_names: &[&str],
) -> Option<CoveringProjectionFacts> {
plan_covering_facts(access, order, target_field, primary_key_names)
}
pub(super) const fn covering_index_adjacent_distinct_eligible(
facts: CoveringProjectionFacts,
) -> bool {
plan_adjacent(facts)
}