From 74acfec2542fb59635600f205d64624d0227695f Mon Sep 17 00:00:00 2001 From: peeeuzin Date: Wed, 22 Jan 2025 11:33:42 -0300 Subject: [PATCH] dump: dump dustdata version to 0.2.0-alpha.6 --- Cargo.toml | 2 +- README.md | 6 +++--- src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a17501..8dd8956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dustdata" -version = "2.0.0-beta.5" +version = "2.0.0-beta.6" edition = "2021" description = "A data concurrency control storage engine to Rustbase" repository = "https://github.com/rustbase/dustdata" diff --git a/README.md b/README.md index 86282c2..03f8262 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add the following to your `Cargo.toml`: ```toml [dependencies] -dustdata = "2.0.0-beta.3" +dustdata = "2.0.0-beta.6" ``` # Usage @@ -46,13 +46,13 @@ let user = User { }; // Creating a new transaction. -let mut transaction = collection.start(); +let mut transaction = collection.start_branch(); // Inserting the user into the transaction. transaction.insert("user:1", user); // Committing the transaction. -collection.commit(&mut transaction).unwrap(); +collection.commit(transaction).unwrap(); // Done! ``` diff --git a/src/lib.rs b/src/lib.rs index 76dfdfe..2634c7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,13 +28,13 @@ //! }; //! //! // Creating a new transaction. -//! let mut transaction = collection.start(); +//! let mut transaction = collection.start_branch(); //! //! // Inserting the user into the transaction. //! transaction.insert("user:1", user); //! //! // Committing the transaction. -//! collection.commit(&mut transaction).unwrap(); +//! collection.commit(transaction).unwrap(); //! //! // Done! //! ```