py_sql 1.0.1

Rust SQL wrapper lang
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rexpr::runtime::RExprRuntime;
use serde_json::Value;
use std::fmt::Debug;

/// Abstract syntax tree node
pub trait RbatisAST: Send + Sync + Debug {
    fn name() -> &'static str
    where
        Self: Sized;
    fn eval(
        &self,
        convert: &dyn crate::StringConvert,
        env: &mut Value,
        engine: &RExprRuntime,
        arg_result: &mut Vec<Value>,
        arg_sql: &mut String,
    ) -> Result<serde_json::Value, crate::error::Error>;
}