Attribute Macros

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

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, }

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 {}

support py_sql fn convert

py sql create macro,this macro use RB.py_fetch and RB.py_exec

Derive Macros