Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate rbs to v4.5.24 - autoclosed #120

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 10, 2025

This PR contains the following updates:

Package Type Update Change
rbs (source) dependencies patch 4.5.18 -> 4.5.24

Release Notes

rbatis/rbatis (rbs)

v4.5.24

Compare Source

what changes?

  • update table_util.rs macro ( you can use macro get like HashMap<String,&Table> or HashMap<String,Table> )
use rbatis::rbdc::DateTime;
use rbatis::{table, table_field_btree, table_field_map, table_field_vec};

#[derive(serde::Serialize, serde::Deserialize,Default,Debug,Clone)]
pub struct Activity {
    pub id: Option<i64>,
    pub name: Option<String>,
    pub pc_link: Option<String>,
    pub h5_link: Option<String>,
    pub pc_banner_img: Option<String>,
    pub h5_banner_img: Option<String>,
    pub sort: Option<String>,
    pub status: Option<i32>,
    pub remark: Option<String>,
    pub create_time: Option<DateTime>,
    pub version: Option<i64>,
    pub delete_flag: Option<i32>,
}

fn main() {
    let tables: Vec<Activity> = vec![
        table!(Activity {
            id: Some(3),
            name: Some("3".to_string()),
        }),
        table!(Activity {
            id: Some(2),
            name: Some("2".to_string()),
        }),
        table!(Activity {
            id: Some(1),
            name: Some("1".to_string()),
        })];
    //map ref
    let hash = table_field_map!(&tables,id);
    println!("---hash={}", rbs::to_value!(hash));
    //map owned
    let hash_owned = table_field_map!(tables.clone(),id);
    println!("---hash={}", rbs::to_value!(hash_owned));
    //btree ref
    let btree = table_field_btree!(&tables,id);
    println!("---btree={}", rbs::to_value!(btree));
    //btree owned
    let btree_owned = table_field_btree!(tables.clone(),id);
    println!("---btree_owned={}", rbs::to_value!(btree_owned));
    //vec<ref>
    let ids= table_field_vec!(&tables,id);
    println!("---ids={}", rbs::to_value!(ids));
    //vec<owned>
    let ids= table_field_vec!(tables,id);
    println!("---ids owned={:?}", ids);
}

v4.5.23

Compare Source

v4.5.22

Compare Source

what changes?

  • break change Intercept set return type -> Result<bool, Error> to -> Result<Option<bool>, Error>
    /// if return None will be return result
    /// if return Some(true) will be run next intercept
    /// if return Some(false) will be break

v4.5.21

Compare Source

what changes?

  • html_sql,py_sql support break node
  • support update_by_column_skip, update_by_column_batch_skip for #​501
  • html_sql,py_sql the bind node will set value to arg.
  • rbs ValueMap use index_map crate

v4.5.20

Compare Source

what changes?

  • fix #​498
  • RBatisConnExecutor rb_task_id use new_snowflake_id()

v4.5.19

Compare Source

what Changes?

  • (new features) open debug_mode , will be show decoding invalid type Which field did the parsing fail. you can see error("invalid type: integer `1`, expected a string, key=`status`")
    for example:
#toml
rbatis = { version = "4.5", features = ["debug_mode"]}
/// table

#[derive(serde::Serialize, serde::Deserialize)]
pub struct Activity {
    pub status: Option<String>,
}
//log
[INFO] [rbatis] [608325834525440517] query <= len=1,rows=[{"status":1}]

called `Result::unwrap()` on an `Err` value: E("invalid type: integer `1`, expected a string, key = `status`")
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library\std\src\panicking.rs:645
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library\core\src\panicking.rs:72


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update rust crate rbs to v4.5.24 fix(deps): update rust crate rbs to v4.5.24 - autoclosed Jan 11, 2025
@renovate renovate bot closed this Jan 11, 2025
@renovate renovate bot deleted the renovate/rbs-4.x-lockfile branch January 11, 2025 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants