decypher 0.2.0-alpha.6

A rust library for parsing openCypher queries.
Documentation
use super::aggregate_registry::AggregateRegistry;

#[derive(Default)]
pub struct LowerConfig {
    pub aggregates: AggregateRegistry,
}

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

    #[test]
    fn test_default_config_has_builtins() {
        let config = LowerConfig::default();
        assert!(config.aggregates.contains("COUNT"));
        assert!(!config.aggregates.contains("apoc.coll.count"));
    }

    #[test]
    fn test_custom_aggregate_registration() {
        let mut config = LowerConfig::default();
        config.aggregates.register("custom.agg");
        assert!(config.aggregates.contains("custom.agg"));
    }
}