fosk 0.1.14

In-memory SQL-like query engine and lightweight data store for testing and prototyping.
Documentation
//! Schema inference and collection reference metadata.

/// Coarse JSON primitive type classification.
pub mod json_primitive;
pub use json_primitive::*;

/// Field-level schema metadata.
pub mod field_info;
pub use field_info::*;

/// Collection schema dictionaries.
pub mod schema_dict;
pub use schema_dict::*;

/// Foreign-key-like collection reference metadata.
pub mod reference_column;
pub use reference_column::*;

/// Provides schema metadata for named collections.
pub trait SchemaProvider {
    /// Given a collection *reference* (alias if present, otherwise the table name),
    /// return its schema if known.
    fn schema_of(&self, collection_ref: &str) -> Option<SchemaDict>;
}