Attribute Macro rbatis::html_sql[][src]

#[html_sql]
Expand description

html sql create macro,this macro use RB.py_fetch and RB.py_exec for example:

lazy_static! { pub static ref RB: Rbatis = Rbatis::new(); } #[py_sql(RB,“example/example.html”)] pub async fn py_select_rb(name: &str) -> Option {}

or:

#[py_sql(“example/example.html”)] pub async fn py_select_rb(rbatis: &Rbatis, name: &str) -> Option {}