Crate mybatis_macro

Source

Attribute Macros§

expr
html
mybatis_html
html sql create macro,this macro use RB.py_fetch and RB.py_exec for example:
mybatis_plus
Mybatis Plus,You can define functionality using the following properties #mybatis_plus #[mybatis_plus(table_name:“biz_activity”)] #[mybatis_plus(table_name:“biz_activity” | table_columns:“id,name,version,delete_flag” | formats_pg:“id:{}::uuid,name:{}::string”)] pub struct BizActivity { pub id: Option, pub name: Option, pub version: Option, pub delete_flag: Option, }
mybatis_sql
auto create sql macro,this macro use Mybatis.fetch_prepare and Mybatis.exec_prepare for example: pub static Mybatis:Lazy = Lazy::new(||Mybatis::new()); #[mybatis_sql(Mybatis, “select * from biz_activity where id = ?”)] async fn select(name: &str) -> BizActivity {}
py
support py_sql fn convert
py_sql
py sql create macro,this macro use RB.py_fetch and RB.py_exec

Derive Macros§

MybatisPlus