Attribute Macro rbatis::py_sql [−][src]
#[py_sql]
py sql create macro,this macro use RB.py_fetch and RB.py_exec for example:
also,you can use arg context_id:&str,RB:&Rbatis
#[py_sql(RB, "select * from biz_activity where id = #{name}
if name != '':
and name=#{name}")]
pub async fn py_select_rb(rbatis: &Rbatis, name: &str) -> Option