Skip to content

Commit 74acfec

Browse files
committed
dump: dump dustdata version to 0.2.0-alpha.6
1 parent ef662e3 commit 74acfec

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dustdata"
3-
version = "2.0.0-beta.5"
3+
version = "2.0.0-beta.6"
44
edition = "2021"
55
description = "A data concurrency control storage engine to Rustbase"
66
repository = "https://github.com/rustbase/dustdata"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
5252
transaction.insert("user:1", user);
5353

5454
// Committing the transaction.
55-
collection.commit(&mut transaction).unwrap();
55+
collection.commit(transaction).unwrap();
5656

5757
// Done!
5858
```

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
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
//! ```

0 commit comments

Comments
 (0)