Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL
APACHE-2.0 License
Bot releases are hidden (Show)
Published by zhuxiujia over 2 years ago
v3.1.3
Published by zhuxiujia over 2 years ago
v3.1.2
debug_mode
enabled)rbatis = { features = ["debug_mode"] }
Published by zhuxiujia over 2 years ago
v3.1.1
fast_log::init(fast_log::config::Config::new().console());
let rb = Rbatis::new();
rb.link("mysql://root:123456@localhost:3306/test")
.await
.unwrap();
let mut w = rb.new_wrapper();
//replace your dyn table name
//w.formats.insert("table_name".to_string(), "biz_{}".to_string());//also support {} is replace value!
w.formats.insert("table_name".to_string(), "biz_activity".to_string());
//support all of RB.*_wrapper() method
let r = rb.fetch_list_by_wrapper::<BizActivity>(w).await;
if r.is_err() {
println!("{}", r.err().unwrap().to_string());
}
Published by zhuxiujia over 2 years ago
v3.0.32
Published by zhuxiujia over 2 years ago
v3.0.31
Published by zhuxiujia almost 3 years ago
v3.0.30
order_bys()
method for #170Published by zhuxiujia almost 3 years ago
v3.0.29
Published by zhuxiujia almost 3 years ago
v3.0.28
RETURNING
for postgres save_by_wrapper
Published by zhuxiujia almost 3 years ago
v3.0.27
Published by zhuxiujia almost 3 years ago
v3.0.26
Published by zhuxiujia almost 3 years ago
v3.0.24
Published by zhuxiujia almost 3 years ago
v3.0.23
Published by zhuxiujia almost 3 years ago
v3.0.22
Published by zhuxiujia almost 3 years ago
v3.0.21
for example:
befor:
#[py_sql(rb,"select * from biz_activity where delete_flag = 0
if name != '':
and name=#{name}")]
async fn py_select_page(rb: &mut RbatisExecutor<'_,'_>, page_req: &PageRequest, name: &str) -> Page<BizActivity> { todo!() }
after:
#[py_sql("select * from biz_activity where delete_flag = 0
if name != '':
and name=#{name}")]
async fn py_select_page(rb: &mut RbatisExecutor<'_,'_>, page_req: &PageRequest, name: &str) -> Page<BizActivity> { todo!() }
Published by zhuxiujia almost 3 years ago
v3.0.20
Published by zhuxiujia almost 3 years ago
v3.0.19
2021-11-18 20:11:01.440734200 UTC INFO rbatis::plugin::log - [rbatis] [303864999586172928] Fetch ==> select count(1) from sys_res where del = ? and parent_id is NULL
[rbatis] Args ==> [0]
2021-11-18 20:11:01.441521600 UTC INFO rbatis::plugin::log - [rbatis] [303864999586172928] ReturnRows <== 1
2021-11-18 20:11:01.441528200 UTC INFO rbatis::plugin::log - [rbatis] [303864999590367232] Fetch ==> select id,parent_id,name,permission,path,del,create_date from sys_res where del = ? and parent_id is NULL order by create_date desc limit 0,5
[rbatis] Args ==> [0]
2021-11-18 20:11:01.453243900 UTC INFO rbatis::plugin::log - [rbatis] [303864999590367232] ReturnRows <== 5
Published by zhuxiujia almost 3 years ago
v3.0.17
Published by zhuxiujia almost 3 years ago
v3.0.16
Published by zhuxiujia almost 3 years ago
v3.0.15
mac_address
crate depPublished by zhuxiujia almost 3 years ago
v3.0.14
bson2
for support u32 and u64