[][src]Trait rbatis::ast::ast::RbatisAST

pub trait RbatisAST: Send + Sync + Clone {
    fn eval(
        &self,
        convert: &impl StmtConvert,
        env: &mut Value,
        engine: &RbatisEngine,
        arg_result: &mut Vec<Value>
    ) -> Result<String, Error>; }

Abstract syntax tree node

Required methods

fn eval(
    &self,
    convert: &impl StmtConvert,
    env: &mut Value,
    engine: &RbatisEngine,
    arg_result: &mut Vec<Value>
) -> Result<String, Error>

env: &mut Value,因为bind node 会绑定变量,env必须为可修改的值 arg_result: 执行后 提交到 驱动的参数

Loading content...

Implementors

impl RbatisAST for BindNode[src]

impl RbatisAST for ChooseNode[src]

impl RbatisAST for DeleteNode[src]

impl RbatisAST for ForEachNode[src]

impl RbatisAST for IfNode[src]

impl RbatisAST for IncludeNode[src]

impl RbatisAST for InsertNode[src]

impl RbatisAST for OtherwiseNode[src]

impl RbatisAST for ResultMapIdNode[src]

impl RbatisAST for ResultMapNode[src]

impl RbatisAST for ResultMapResultNode[src]

impl RbatisAST for SelectNode[src]

impl RbatisAST for SetNode[src]

impl RbatisAST for SqlNode[src]

impl RbatisAST for StringNode[src]

impl RbatisAST for TrimNode[src]

impl RbatisAST for UpdateNode[src]

impl RbatisAST for WhenNode[src]

impl RbatisAST for WhereNode[src]

impl<'a> RbatisAST for NodeType[src]

Loading content...