real-rs 0.1.0

Universal query engine with relational algebra - compile the same query to PostgreSQL, SQLite, MongoDB, and YottaDB
Documentation
//! # real-rs: Relational Algebra Engine
//!
//! A compile-time verified, truly universal query engine.
//! Algebra-first design that compiles to diverse backends including hierarchical stores.

use std::collections::HashMap;
use thiserror::Error;

pub mod algebra;
pub mod backends;
pub mod schema;

#[derive(Debug, Error)]
pub enum RealError {
    #[error("Schema error: {0}")]
    Schema(String),

    #[error("Type mismatch: expected {expected}, got {actual}")]
    TypeMismatch { expected: String, actual: String },

    #[error("Backend error: {0}")]
    Backend(String),

    #[error("Column not found: {0}")]
    ColumnNotFound(String),
}

pub type Result<T> = std::result::Result<T, RealError>;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn library_compiles() {
        assert!(true);
    }
}