rbatis

Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL

APACHE-2.0 License

Downloads
1.1M
Stars
2.3K
Committers
25

Bot releases are hidden (Show)

rbatis - v3.1.3

Published by zhuxiujia over 2 years ago

v3.1.3

  • html_sql add check file path is_absolute
rbatis - v3.1.2

Published by zhuxiujia over 2 years ago

v3.1.2

  • Support for changing html_sql files to trigger recompilation。(This feature must have debug_mode enabled)
rbatis = { features = ["debug_mode"] }
rbatis - v3.1.1

Published by zhuxiujia over 2 years ago

v3.1.1

  • support #182
  • format use String. so dyn table_name can be
    for example:
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());
        }
rbatis - v3.0.32

Published by zhuxiujia over 2 years ago

v3.0.32

  • fix Print format of SQL records
  • add ```[profile.release]``
  • up once_cell version
rbatis - v3.0.31

Published by zhuxiujia over 2 years ago

v3.0.31

  • fix DateTimeNative::now() time loc
rbatis - v3.0.30

Published by zhuxiujia almost 3 years ago

v3.0.30

  • add Wrapper for order_bys() method for #170
  • up sqlx version
rbatis - v3.0.29

Published by zhuxiujia almost 3 years ago

v3.0.29

  • fix timez of #166
rbatis - v3.0.28

Published by zhuxiujia almost 3 years ago

v3.0.28

  • add RETURNING for postgres save_by_wrapper
  • fix #163 #96
rbatis - v3.0.27

Published by zhuxiujia almost 3 years ago

v3.0.27

  • Distinguish between rbson serialization and Serde_JSON serialization isolation so that the normal JSON format is not affected
rbatis - v3.0.26

Published by zhuxiujia almost 3 years ago

v3.0.26

  • remove serde_json dep
  • remove bson2 dep
  • add rbson dep
rbatis - v3.0.24

Published by zhuxiujia almost 3 years ago

v3.0.24

  • fix #161
rbatis - v3.0.23

Published by zhuxiujia almost 3 years ago

v3.0.23

  • fix DateTimeNative bind fail
rbatis - v3.0.22

Published by zhuxiujia almost 3 years ago

v3.0.22

  • Optimized crud.rs P trait,Allow ownership or references to pass in
  • Optimized The paging plug-in incorrectly recognized the SQL keyword
rbatis - v3.0.21

Published by zhuxiujia almost 3 years ago

v3.0.21

  • Simplified procedure macro definition, omitting 'rb' keyword

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!() }
rbatis - v3.0.20

Published by zhuxiujia almost 3 years ago

v3.0.20

  • rename rbatis_core exec to exec_sql
  • optimization macro recognizes the Result type
rbatis - v3.0.19

Published by zhuxiujia almost 3 years ago

v3.0.19

  • Simplify py_SQL and HTML_SQL generated code, shorten the generated code length, convenient debugging
  • support tx and conn gen task id or tx id
    for example:
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
rbatis - v3.0.17

Published by zhuxiujia almost 3 years ago

v3.0.17

  • fix py_sql parse
rbatis - v3.0.16

Published by zhuxiujia almost 3 years ago

v3.0.16

  • fix py_sql/html_sql choose method impl
rbatis - v3.0.15

Published by zhuxiujia almost 3 years ago

v3.0.15

  • remove mac_address crate dep
rbatis - v3.0.14

Published by zhuxiujia almost 3 years ago

v3.0.14

  • add new crate bson2 for support u32 and u64
  • support u32 and u64 bson type