use crate::catalog::{analysis::CatalogReadView, resolution::RelationNameResolution};
use crate::{plan::QueryPlan, RowSchema};
use std::collections::{BTreeMap, BTreeSet};
#[derive(Clone)]
pub struct BindingContext<'a> {
pub catalog: CatalogReadView,
pub resolution: RelationNameResolution,
pub ctes: BTreeMap<String, RowSchema>,
pub deferred_ctes: BTreeMap<String, crate::plan::RetainedCtePlan>,
pub non_returning_ctes: BTreeSet<String>,
pub scalar_subqueries: &'a [QueryPlan],
}
#[cfg(test)]
mod tests;