Skip to main content

real_rs/
lib.rs

1//! # real-rs: Relational Algebra Engine
2//!
3//! A compile-time verified, truly universal query engine.
4//! Algebra-first design that compiles to diverse backends including hierarchical stores.
5
6use std::collections::HashMap;
7use thiserror::Error;
8
9pub mod algebra;
10pub mod backends;
11pub mod schema;
12
13#[derive(Debug, Error)]
14pub enum RealError {
15    #[error("Schema error: {0}")]
16    Schema(String),
17
18    #[error("Type mismatch: expected {expected}, got {actual}")]
19    TypeMismatch { expected: String, actual: String },
20
21    #[error("Backend error: {0}")]
22    Backend(String),
23
24    #[error("Column not found: {0}")]
25    ColumnNotFound(String),
26}
27
28pub type Result<T> = std::result::Result<T, RealError>;
29
30#[cfg(test)]
31mod tests {
32    use super::*;
33
34    #[test]
35    fn library_compiles() {
36        assert!(true);
37    }
38}