Crates.io | persy |
lib.rs | persy |
version | 1.5.2 |
source | src |
created_at | 2017-04-08 22:54:11.291199 |
updated_at | 2024-10-09 14:53:57.854419 |
description | Transactional Persistence Engine |
homepage | https://persy.rs |
repository | https://gitlab.com/persy/persy |
max_upload_size | |
id | 10058 |
size | 865,708 |
Persy is a transactional storage engine written in rust.
Add it as dependency of your project:
[dependencies]
persy="1.5"
Create a new persy file save some data in it and scan it.
use persy::{Persy,Config};
//...
Persy::create("./open.persy")?;
let persy = Persy::open("./open.persy",Config::new())?;
let mut tx = persy.begin()?;
tx.create_segment("seg")?;
let data = vec![1;20];
tx.insert("seg", &data)?;
let prepared = tx.prepare()?;
prepared.commit()?;
for (_id, content) in persy.scan("seg")? {
assert_eq!(content[0], 1);
//....
}
Check the get started and the APIs look for all the version on crates.io
Checkout the source code:
git clone https://gitlab.com/persy/persy.git
Compile and Test
cargo test
Follow Persy on Mastodon for news and announcements, join the #persy_rs:matrix.org for have a chat.
You can find the code on our Repository and report any issue in our Issues Tracker
If you want to have an active part on the Persy development, you can start from reviewing and suggesting API changes, jump directly to hacking the code or just playing a bit with docs. If you want a list of possibility you can start from the list of Good First Issue