76 releases (33 stable)

1.5.0 Mar 6, 2024
1.4.7 Dec 15, 2023
1.4.6 Nov 27, 2023
1.4.4 Mar 17, 2023
0.1.1 Jun 11, 2017

#9 in Database implementations

Download history 1907/week @ 2024-02-29 1724/week @ 2024-03-07 1432/week @ 2024-03-14 1094/week @ 2024-03-21 1344/week @ 2024-03-28 1279/week @ 2024-04-04 1774/week @ 2024-04-11 1205/week @ 2024-04-18 1764/week @ 2024-04-25 1294/week @ 2024-05-02 1089/week @ 2024-05-09 1015/week @ 2024-05-16 819/week @ 2024-05-23 1478/week @ 2024-05-30 1337/week @ 2024-06-06 1961/week @ 2024-06-13

5,677 downloads per month
Used in 21 crates (10 directly)

MPL-2.0 license

685KB
18K SLoC

Persy

build status coverage report

Persy is a transactional storage engine written in rust.

Install

Add it as dependency of your project:

[dependencies]
persy="1.5"

Example

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);
    //....
}

Docs

Check the get started and the APIs look for all the version on crates.io

Compile The Source

Checkout the source code:

git clone https://gitlab.com/persy/persy.git

Compile and Test

cargo test

Contacts

Follow Persy on Mastodon for news and announcements, join the #persy_rs:matrix.org for have a chat.

Contributing

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

Dependencies

~1–2.3MB
~43K SLoC