Skip to content

fix(deps): update rust crate rbatis to v4.6.8 #130

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2025

This PR contains the following updates:

Package Type Update Change
rbatis (source) dependencies minor =4.5.33 -> =4.6.8

Release Notes

rbatis/rbatis (rbatis)

v4.6.8

Compare Source

add page method:

/// create Vec<PageRequest> from (total: u64, page_size: u64)
    pub fn make_page_requests(total: u64, page_size: u64) -> Vec<PageRequest> {
        let mut result = vec![];
        let pages = PageRequest::new(1, page_size).set_total(total).pages();
        for idx in 0..pages {
            let current_page = PageRequest::new(idx + 1, page_size).set_total(total);
            result.push(current_page);
        }
        result
    }

v4.6.7

Compare Source

  • fix PageIntercept remove order by sql when run count sql

v4.6.6

Compare Source

v4.6.5

Compare Source

  • crud macro *_by_map method will be skip null for example value!{ "name": null }

v4.6.4

Compare Source

  • page intercept will be remove order by when run count sql

v4.6.3

Compare Source

  • in () sql will be return default result

v4.6.2

Compare Source

  • fix crud macro select_by_map(&rb, value!{"id": &[]}).await; if is select empty array ,will be return empty vec result.

v4.6.1

Compare Source

  • fix check empty arg

v4.6.0

Compare Source

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

Compare Source

what changes?

  • up rbdc to last version

v4.5.50

Compare Source

what changes?

  • fix intercept some bugs

v4.5.49

Compare Source

what changes?

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

v4.5.48

Compare Source

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

Compare Source

what changes?

  • MysqlTableMapper use Varchar(100) replace TEXT

v4.5.46

what changes?

  • RBatisTxExecutorGuard support Clone
  • MysqlTableMapper and PGTableMapper id column use VARCHAR(50)

v4.5.44

Compare Source

what changes?

  • RBatisTxExecutor allow Clone
  • break change: tx.defer_async method change if tx.done{ } to tx.done(){ }
   async fn test_tx(tx:RBatisTxExecutor) -> Result<(),Error>{
            tx.defer_async(|tx| async move {
                if !tx.done(){ let _ = tx.rollback().await; }
          });
       Ok(())
   }

v4.5.43

Compare Source

what changes?

  • break change: tx.defer_async method change if tx.done{ } to tx.done(){ }
   async fn test_tx(tx:RBatisTxExecutor) -> Result<(),Error>{
            tx.defer_async(|tx| async move {
                if !tx.done(){ let _ = tx.rollback().await; }
          });
       Ok(())
   }

v4.5.42

Compare Source

what changes?

  • fix #​556 PageIntercept Only handle lowercase and query statements starting with 'select'

v4.5.41

Compare Source

what changes?

  • add PageIntercept to Processing pagination requests.
  • if you call rb.set_intercepts(vec![...]) do not forget add PageIntercept first!

v4.5.40

Compare Source

what changes?

  • Executor add id() method
  • default log use Debug Level
  • htmlsql_select_page! and pysql_select_page! will be auto generate count sql, so You just need to write one query statement.
    for example
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MockTable{}
htmlsql_select_page!(select_page_data(name: &str) -> MockTable => 
r#"
 <select id="select_page_data">
  `select * from table  where id > 1  limit ${page_no},${page_size} `
</select>
"#);
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MockTable{}
pysql_select_page!(pysql_select_page(name:&str) -> MockTable =>
    r#"`select * from activity where delete_flag = 0`
        if name != '':
           ` and name=#{name}`
      ` limit ${page_no},${page_size}`
"#);

v4.5.39

Compare Source

what changes?

  • fix some crud! macro intellisense

v4.5.37

Compare Source

what changes?

  • fix htmlsql load file Intelligent prompt failure

v4.5.36

what changes?

  • add Task ID Generator

v4.5.34

Compare Source

What Changes?
  • rename ColumMapper to ColumnMapper
  • fix table_sync plugin maybe set id column type to "id"
  • table_sync plugin rename ColumnMapper method fn get_column to fn get_column_type
  • edit log [rbatis] to [rb]

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 force-pushed the renovate/rbatis-4.x branch from aab0d52 to 4cf408d Compare January 12, 2025 09:36
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.5.48 fix(deps): update rust crate rbatis to v4.5.49 Jan 12, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from 4cf408d to fd86c6b Compare February 3, 2025 14:40
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.5.49 fix(deps): update rust crate rbatis to v4.5.50 Feb 3, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from fd86c6b to ba516b2 Compare April 29, 2025 16:34
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.5.50 fix(deps): update rust crate rbatis to v4.5.51 Apr 29, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from ba516b2 to 91ff3ee Compare May 25, 2025 00:06
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.5.51 fix(deps): update rust crate rbatis to v4.6.1 May 25, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from 91ff3ee to 2036ea1 Compare May 25, 2025 15:25
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.1 fix(deps): update rust crate rbatis to v4.6.2 May 25, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from 2036ea1 to 640e281 Compare May 27, 2025 20:02
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.2 fix(deps): update rust crate rbatis to v4.6.3 May 27, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from 640e281 to 85064cc Compare May 29, 2025 11:33
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.3 fix(deps): update rust crate rbatis to v4.6.4 May 29, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from 85064cc to d98ca6e Compare May 31, 2025 09:07
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.4 fix(deps): update rust crate rbatis to v4.6.5 May 31, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from d98ca6e to d047c3c Compare June 1, 2025 17:44
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.5 fix(deps): update rust crate rbatis to v4.6.7 Jun 1, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from d047c3c to d26748e Compare July 2, 2025 11:52
@renovate renovate bot changed the title fix(deps): update rust crate rbatis to v4.6.7 fix(deps): update rust crate rbatis to v4.6.8 Jul 2, 2025
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from d26748e to ebb607c Compare July 7, 2025 20:18
@renovate renovate bot force-pushed the renovate/rbatis-4.x branch from ebb607c to 0a17944 Compare August 10, 2025 14:56
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