File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " dustdata"
3- version = " 2.0.0-beta.5 "
3+ version = " 2.0.0-beta.6 "
44edition = " 2021"
55description = " A data concurrency control storage engine to Rustbase"
66repository = " https://github.com/rustbase/dustdata"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Add the following to your `Cargo.toml`:
1818
1919``` toml
2020[dependencies ]
21- dustdata = " 2.0.0-beta.3 "
21+ dustdata = " 2.0.0-beta.6 "
2222```
2323
2424# Usage
@@ -46,13 +46,13 @@ let user = User {
4646};
4747
4848// Creating a new transaction.
49- let mut transaction = collection . start ();
49+ let mut transaction = collection . start_branch ();
5050
5151// Inserting the user into the transaction.
5252transaction . insert (" user:1" , user );
5353
5454// Committing the transaction.
55- collection . commit (& mut transaction ). unwrap ();
55+ collection . commit (transaction ). unwrap ();
5656
5757// Done!
5858```
Original file line number Diff line number Diff line change 2828//! };
2929//!
3030//! // Creating a new transaction.
31- //! let mut transaction = collection.start ();
31+ //! let mut transaction = collection.start_branch ();
3232//!
3333//! // Inserting the user into the transaction.
3434//! transaction.insert("user:1", user);
3535//!
3636//! // Committing the transaction.
37- //! collection.commit(&mut transaction).unwrap();
37+ //! collection.commit(transaction).unwrap();
3838//!
3939//! // Done!
4040//! ```
You can’t perform that action at this time.
0 commit comments