Crate rbatis_macro_driver
source ·Attribute Macros
html sql create macro,this macro use RB.py_fetch and RB.py_exec
for example:
py sql create macro,this macro use RB.py_fetch and RB.py_exec
proxy rbatis_codegen rb_html
proxy rbatis_codegen rb_py
auto create sql macro,this macro use RB.fetch_prepare and RB.exec_prepare
for example:
pub static RB:Lazy = Lazy::new(||Rbatis::new());
#[sql(RB, “select * from biz_activity where id = ?”)]
async fn select(name: &str) -> BizActivity {}