/// py str into py ast,run get sql,arg result
py str into py ast,run get sql,arg result
py str into py ast run get sql arg result
fn py_to_sql<Arg>(
        &self,
        py_sql: &str,
        arg: &Arg,
    ) -> Result<(String, Vec<serde_json::Value>), Error>
    where
        Arg: Serialize + Send + Sync,
    {
        let mut arg = json!(arg);
        match self
            .runtime_py
            .eval(&self.driver_type()?, py_sql, &mut arg, &self.runtime_expr)
        {
            Ok(v) => Ok(v),
            Err(e) => Err(Error::from(e)),
        }
    }
fn py_to_sql < Arg > ( & self , py_sql : & str , arg : & Arg , ) -> Result < ( String , Vec < serde_json :: Value > ) , Error > where Arg : Serialize + Send + Sync , { let mut arg = json ! ( arg ) ; match self . runtime_py . eval ( & self . driver_type ( ) ? , py_sql , & mut arg , & self . runtime_expr ) { Ok ( v ) => Ok ( v ) , Err ( e ) => Err ( Error :: from ( e ) ) , } }
py str into py ast,run get sql,arg result
py str into py ast run get sql arg result
&self
py_sql
&str
arg
&Arg