78 releases (35 stable)

1.5.2 Oct 9, 2024
1.5.1 Jul 24, 2024
1.5.0 Mar 6, 2024
1.4.7 Dec 15, 2023
0.1.1 Jun 11, 2017

#10 in Database implementations

Download history 2571/week @ 2024-08-21 1486/week @ 2024-08-28 1422/week @ 2024-09-04 1754/week @ 2024-09-11 1661/week @ 2024-09-18 2149/week @ 2024-09-25 1730/week @ 2024-10-02 993/week @ 2024-10-09 1431/week @ 2024-10-16 1360/week @ 2024-10-23 1824/week @ 2024-10-30 1062/week @ 2024-11-06 2097/week @ 2024-11-13 1051/week @ 2024-11-20 1121/week @ 2024-11-27 1115/week @ 2024-12-04

5,696 downloads per month
Used in 30 crates (11 directly)

MPL-2.0 license

695KB
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

~0.9–6.5MB
~41K SLoC