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 - v4.0.9

Published by zhuxiujia about 2 years ago

v4.0.9

  • all macro support custom table_name for example
//crud!(BizActivity {},"biz_activity");
impl_select_page!(BizActivity{select_page_by_name(name:&str) =>"
     if name != null && name != '':
       `where name != #{name}`
     if name == '':
       `where name != ''`"},"biz_activity");
rbatis - v4.0.8

Published by zhuxiujia about 2 years ago

v4.0.8

  • fix insert_batch macro
  • add update_batch, delete_batch
  • add fetch_decode methods
  • add some test case
rbatis - v4.0.7

Published by zhuxiujia about 2 years ago

v4.0.7

  • add crate rbatis_codegen
  • merge gen code into rbatis-macro-dirver info print
rbatis - v4.0.6

Published by zhuxiujia about 2 years ago

v4.0.6

  • add macro method insert_batch
  • fix sub index macro error
rbatis - v4.0.4

Published by zhuxiujia about 2 years ago

v4.0.4

  • add Send for Executor
rbatis - v4.0.3

Published by zhuxiujia about 2 years ago

v4.0.3

  • fix mysql bugs
  • rbatis add tx 'done:bool' field
rbatis - v4.0.2

Published by zhuxiujia about 2 years ago

v4.0.2

  • fix some macro gen bugs
  • crud macro support empty and many args
rbatis - v4.0.0

Published by zhuxiujia about 2 years ago

v4.0.0

  • Removed the sqlx-core
  • Add rbdc-driver(mysql,sqlite,mssql,pg....and more). The rewritten database driver is similar to JDBC, enabling Box Dyn dependency separation
  • Add mobc connection pool
  • Removed the Wrapper
  • Add crud! and impl_select! impl_update! impl_delete! impl_insert! impl_select_page! traits
  • pysql/htmlsql macro added keyword `` support
  • Add all driver support keyword ? placeholder
rbatis - v3.1.16

Published by zhuxiujia about 2 years ago

v3.1.16

  • fix #231
rbatis - v3.1.15

Published by zhuxiujia over 2 years ago

v3.1.15

  • fix #223 So no explicit conversion is required when null values are inserted into the PG database

Mysql and SQLite use encode Option::Null. As for Pg database, rbatis has a PgNull structure built in the bottom layer. When Bson is Null, the type carried by encode PgNull structure is Pg UNKNOWN. That solves the problem

rbatis - v3.1.14

Published by zhuxiujia over 2 years ago

v3.1.14

  • up rbson version
rbatis - v3.1.13

Published by zhuxiujia over 2 years ago

v3.1.13

  • fix #215
rbatis - v3.1.12

Published by zhuxiujia over 2 years ago

v3.1.12

  • fix wrapper print info
  • fix wrapper push method
rbatis - v3.1.11

Published by zhuxiujia over 2 years ago

v3.1.11

  • support rbatis arg type: mut rb: RbatisExecutor<'_, '_>,
    for example:
    ///select page must have  '?:&PageRequest' arg and return 'Page<?>'
    #[html_sql("example/example.html")]
    async fn select_by_condition(mut rb: RbatisExecutor<'_, '_>, page_req: &PageRequest, name: &str, dt: &rbatis::DateTimeNative) -> Page<BizActivity> { impled!() }

    #[tokio::test]
    pub async fn test_select_by_condition() {
        fast_log::init(fast_log::config::Config::new().console());
        //use static ref
        let rb = init_sqlite().await;
        let a = select_by_condition(  rb.as_executor(), &PageRequest::new(1, 10), "test", &rbatis::DateTimeNative::now())
            .await
            .unwrap();
        println!("{:?}", a);
    }
rbatis - v3.1.10

Published by zhuxiujia over 2 years ago

v3.1.10

  • support u64 timestamp
  • fix #202
rbatis - v3.1.9

Published by zhuxiujia over 2 years ago

v3.1.9

  • support log_plugin change level filter
rbatis - v3.1.8

Published by zhuxiujia over 2 years ago

v3.1.8

  • fix Snowflake on ArmV7a platform
  • #197 fix Cargo test Error compilation
rbatis - v3.1.7

Published by zhuxiujia over 2 years ago

v3.1.7

  • support timestamp for sqlite
  • support decode timestamp of rbatis::DateTimeNative and rbatis::DateTimeUtc
rbatis - v3.1.6

Published by zhuxiujia over 2 years ago

v3.1.6

  • datetime support decode '2022-03-03T12:12:12' and '2022-03-03 12:12:12'
rbatis - v3.1.5

Published by zhuxiujia over 2 years ago

v3.1.5

  • fix #184