fosk 0.1.6

In-memory SQL-like query engine and lightweight data store for testing and prototyping.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::JsonPrimitive;

#[derive(Debug, Clone, PartialEq)]
pub enum AnalyzerError {
    UnknownCollection(String),
    UnknownColumn { name: String, candidates: Vec<String> },
    AmbiguousColumn { name: String, matches: Vec<(String,String)> }, // (coll, col)
    NotACollection(String),
    FunctionNotFound(String),
    FunctionArgMismatch { name: String, expected: String, got: Vec<JsonPrimitive> },
    NonConstInConstFold,
    InvalidLikePattern,
    InvalidParameterValue,
    Other(String),
}