athena_rs 3.26.3

Hyper performant polyglot Database driver
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Expected-table evaluation for `/debug/schema`.
//!
//! This module compares observed logging-client relations/columns against the
//! static expected-table contract while preserving a stable facade around
//! split evaluation stages:
//! - `debug_expected_tables_iteration_stage`
//! - `debug_expected_tables_row_stage`

use super::debug_evaluation::ExpectedTablesEvaluation;
use super::debug_expected_tables_iteration_stage::build_debug_expected_tables_evaluation_from_observed_map;
use super::debug_observed_tables::ObservedTablesMap;

/// Evaluates all expected table contracts against observed schema state.
pub(super) fn evaluate_expected_tables(
    observed_map: &ObservedTablesMap,
) -> ExpectedTablesEvaluation {
    build_debug_expected_tables_evaluation_from_observed_map(observed_map)
}