quill-sql 0.3.1

An educational Rust relational database (RDBMS) inspired by CMU 15445
Documentation
use crate::catalog::SchemaRef;
use crate::expression::Expr;
use crate::utils::table_ref::TableReference;

#[derive(derive_new::new, Debug, Clone)]
pub struct TableScan {
    pub table_ref: TableReference,
    pub table_schema: SchemaRef,
    pub filters: Vec<Expr>,
    pub limit: Option<usize>,
    /// Row-count estimate attached by the planner (from ANALYZE).
    pub estimated_row_count: Option<u64>,
}

impl std::fmt::Display for TableScan {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "TableScan: {}", self.table_ref)
    }
}