#[sql]
Expand description
auto create sql macro,this macro use RB.fetch_prepare and RB.exec_prepare
for example:
pub static RB:Lazy
or: #[sql(“select * from biz_activity where id = ?”)] async fn select(rb:&Rbatis, name: &str) -> BizActivity {}
#[sql]
auto create sql macro,this macro use RB.fetch_prepare and RB.exec_prepare
for example:
pub static RB:Lazy
or: #[sql(“select * from biz_activity where id = ?”)] async fn select(rb:&Rbatis, name: &str) -> BizActivity {}