use crate::loader::models::{PlanDetail, PlanItem, PlanView, TablePlan};
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TableRow {
pub name: String,
pub action: String,
pub reads: String,
pub details: Vec<PlanDetail>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SourceGroup {
pub line: String,
pub rows: Vec<TableRow>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SkippedGroup {
pub reason: String,
pub tables: Vec<String>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct LoadedTable<'a> {
pub table: &'a TablePlan,
pub name: String,
pub item: PlanItem,
pub reads: Option<String>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PlanParts<'a> {
pub view: &'a PlanView,
pub tables: Vec<LoadedTable<'a>>,
pub problems: Vec<String>,
}