Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDMA v0.1.0-beta.5: Add Sled support #10

Merged
merged 3 commits into from Jan 25, 2023
Merged

EDMA v0.1.0-beta.5: Add Sled support #10

merged 3 commits into from Jan 25, 2023

Conversation

chungquantin
Copy link
Owner

@chungquantin chungquantin commented Jan 25, 2023

Changelog

  • Migrate from fixed column family design to TagBucket datastructure
  • Allows more databases to be integrated into EDMA using TagBucket
  • Supported tags: tree (for Sled), column_family (for RocksDB)
  • Add Sled integration: Allows iterate and view database item stored globally and stored in a tree using command TREE=<tree_name_goes_here>

New Features

Check the latest version of EDMA: https://crates.io/crates/edma

Support sled database (request in this PR: https://github.com/nomadiz/edma/issues/8).`sled` database is one of the most popular databases in Rust ecosystem. sled is a high-performance embedded database with an API that is similar to a BTreeMap<[u8], [u8]>, but with several additional capabilities for assisting creators of stateful systems.

It is fully thread-safe, and all operations are atomic. Multiple Trees with isolated keyspaces are supported with the Db::open_tree method.

This integration allows developer to view data stored globally or in isolated keyspaces (tree) in sled using EDMA.

ezgif-1-c1fc0c3e29

How to use sled with EDMA?

With a simple additional line in your current JSON configuration file. sled is fully embedded.

{
  "databases": [
    // ...other databases
+  {
+    "name": "sled",
+    "path": "../temp/cf"
+  },
  ],
  "templates": [
	// ...other templates
  ]
}

@chungquantin chungquantin mentioned this pull request Jan 25, 2023
@chungquantin chungquantin merged commit 4599b48 into master Jan 25, 2023
@chungquantin chungquantin deleted the feat/sled branch January 25, 2023 22:29
@edwardwc
Copy link

Looks awesome -- look forward to using!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants