Attribute Macro rbatis::html_sql

source · []
#[html_sql]
Expand description

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

pub static RB:Lazy = Lazy::new(||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 {}