| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-05 | 1.0 kB | |
| v4.9.4 source code.tar.gz | 2026-05-05 | 267.3 kB | |
| v4.9.4 source code.zip | 2026-05-05 | 366.3 kB | |
| Totals: 3 Items | 634.7 kB | 0 | |
what change?
-
add
let tx:RBatisTxExecutorGuard = tx.auto_commit();to support auto commit/rollback for example::::rust async fn transaction(tx: RBatisTxExecutor) -> Result<(), Error> { let tx = tx.auto_commit(); // defer commit or rollback log::info!("transaction [{}] start", tx.tx_id()); let _ = Activity::insert( &tx, &Activity { id: Some("3".into()), name: Some("3".into()), pc_link: Some("3".into()), h5_link: Some("3".into()), pc_banner_img: None, h5_banner_img: None, sort: None, status: Some(3), remark: Some("3".into()), create_time: Some(DateTime::now()), version: Some(1), delete_flag: Some(1), }, ) .await; //if not commit or rollback,tx.done = false, //tx.commit().await?; Ok(()) }