Skip to content

Commit

Permalink
Merge branch 'release/v2.0.0-beta.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
peeeuzin committed May 23, 2023
2 parents aef6ea6 + e2e8089 commit 7745d3a
Show file tree
Hide file tree
Showing 14 changed files with 631 additions and 1,022 deletions.
207 changes: 18 additions & 189 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dustdata"
version = "1.3.2"
version = "2.0.0-beta.0"
edition = "2021"
description = "A data concurrency control storage engine to Rustbase"
repository = "https://github.com/rustbase/dustdata"
Expand All @@ -16,10 +16,10 @@ exclude = [


[dependencies]
bson = "=2.4.0"
bson = "2.6.1"
hex = "0.4.3"
lz4 = "1.24.0"
farmhash = "1.1.5"
bitvec = "1.0.1"
serde = {version = "1.0.148", features = ["derive"]}
chrono = "0.4.23"
fs2 = "0.4.3"
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add the following to your `Cargo.toml`:

```toml
[dependencies]
dustdata = "1.3.2"
dustdata = "2.0.0-beta.0"
```

# Usage
Expand All @@ -35,14 +35,12 @@ Initialize a DustData interface.

```rust
// DustData Configuration
let config = dustdata::DustDataConfig {
path: std::path::Path::new("./test_data/dustdata").to_path_buf(),
lsm_config: dustdata::LsmConfig {
flush_threshold: dustdata::Size::Megabytes(128),
}
let config = LsmConfig {
flush_threshold: 10240 // 10KB
sstable_path: PathBuf::from("./test_data"),
};

let mut dustdata = dustdata::initialize(config);
let dustdata = Lsm::new(config);
```

## Insert a data
Expand Down
Loading

0 comments on commit 7745d3a

Please sign in to comment.