athena_rs 3.18.0

Hyper performant polyglot Database driver
Documentation
//! Snapshot contract types for `/debug/schema`.
//!
//! This module centralizes snapshot row/result contracts shared across
//! snapshot query execution and snapshot orchestration.

use super::service::{SchemaColumnRecord, SchemaRelationRecord};

/// Raw relation/column query rows used to compose a diagnostics snapshot.
pub(super) struct LoggingSchemaSnapshotRows {
    /// Relations discovered via `information_schema.tables`.
    pub(super) relations: Vec<SchemaRelationRecord>,
    /// Columns discovered via `information_schema.columns`.
    pub(super) columns: Vec<SchemaColumnRecord>,
}

/// In-memory snapshot of logging-client schema rows used for diagnostics.
pub(super) struct LoggingSchemaSnapshot {
    /// Relations discovered via `information_schema.tables`.
    pub(super) relations: Vec<SchemaRelationRecord>,
    /// Columns discovered via `information_schema.columns`.
    pub(super) columns: Vec<SchemaColumnRecord>,
}