Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: rbatis/rbatis

v4.6.4

29 May 07:49
Compare
Choose a tag to compare
Loading
  • page intercept will be remove order by when run count sql

v4.6.3

27 May 15:37
Compare
Choose a tag to compare
Loading
  • in () sql will be return default result

v4.6.2

25 May 13:05
Compare
Choose a tag to compare
Loading
  • fix crud macro select_by_map(&rb, value!{"id": &[]}).await; if is select empty array ,will be return empty vec result.

v4.6.1

23 May 10:23
Compare
Choose a tag to compare
Loading
  • fix check empty arg

v4.6.0

22 May 13:15
Compare
Choose a tag to compare
Loading

what changes?

  • rbatis_codgen add contains starts_with ends_with
  • crud macro remove *_by_column methods ( use *by_map replace)
  • crud macro update (all use of *by_map) for example
#[tokio::main]
pub async fn main() {
    let rb = RBatis::new();
    rb.init(rbdc_sqlite::driver::SqliteDriver {}, "sqlite://target/sqlite.db").unwrap();
    
let table = Activity {
        id: Some("2".into()),
        name: Some("2".into()),
        pc_link: Some("2".into()),
        h5_link: Some("2".into()),
        pc_banner_img: None,
        h5_banner_img: None,
        sort: Some("2".to_string()),
        status: Some(2),
        remark: Some("2".into()),
        create_time: Some(DateTime::now()),
        version: Some(1),
        delete_flag: Some(1),
    };
    let tables = [table.clone(), {
        let mut t3 = table.clone();
        t3.id = "3".to_string().into();
        t3
    }];

    let data = Activity::insert(&rb, &table).await;
    println!("insert = {}", json!(data));

    let data = Activity::insert_batch(&rb, &tables, 10).await;
    println!("insert_batch = {}", json!(data));

    let data = Activity::update_by_map(&rb, &table, value!{ "id": "1" }).await;
    println!("update_by_map = {}", json!(data));

    let data = Activity::select_by_map(&rb, value!{"id":"2","name":"2"}).await;
    println!("select_by_map = {}", json!(data));

    let data = Activity::select_by_map(&rb, value!{"id":"2","name like ":"%2"}).await;
    println!("select_by_map like {}", json!(data));

    let data = Activity::select_by_map(&rb, value!{"id > ":"2"}).await;
    println!("select_by_map > {}", json!(data));

    let data = Activity::select_by_map(&rb, value!{"id": &["1", "2", "3"]}).await;
    println!("select_by_map in {}", json!(data));

    let data = Activity::delete_by_map(&rb, value!{"id": &["1", "2", "3"]}).await;
    println!("delete_by_map = {}", json!(data));
}

v4.5.51

29 Apr 07:44
Compare
Choose a tag to compare
Loading

what changes?

  • up rbdc to last version

v4.5.50

03 Feb 14:17
Compare
Choose a tag to compare
Loading

what changes?

  • fix intercept some bugs

v4.5.49

12 Jan 07:05
Compare
Choose a tag to compare
Loading

what changes?

  • fix select_in_column,delete_in_column run sql fail of array is empty

v4.5.48

20 Dec 03:48
Compare
Choose a tag to compare
Loading

what changes?

  • crud! add select_by_map
  • crud!add update_by_map
  • crud! add delete_by_map

for example:

let rb = RBatis::new();
rb.init(rbdc_sqlite::driver::SqliteDriver {}, "sqlite://target/sqlite.db").unwrap();
let data = Activity::select_by_map(&rb, to_value!{
        "id":"2",
        "name":"2",
}).await;

v4.5.47

13 Dec 14:45
Compare
Choose a tag to compare
Loading

what changes?

  • MysqlTableMapper use Varchar(100) replace TEXT
Morty Proxy This is a proxified and sanitized view of the page, visit original site.