persy 0.1.1

Transactional Persistence Engine

Persy

build status

Persy is a transactional storage engine written in rust.

still under development, hacking welcome

COMPILING THE SOURCE

Checkout the source code:

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

Compile and Test

cargo test 

INSTALL

Add it as dependency of your project:

[dependencies]
persy=https://gitlab.com/tglman/persy.git 

EXAMPLE

Create a new persy file save some data in it and scan it.

    Persy::create("./storage.persy")?;
    let persy = Persy::open("./storage.persy",Config::new())?;
    let mut tx = persy.begin()?;
    persy.create_segment(&mut tx, "seg")?;
    let data = vec![1;20];
    persy.insert_record(&mut tx, "seg", &data)?;
    let prepared = persy.prepare_commit(tx)?;
    persy.commit(prepared)?;
    for x in persy.scan_records("seg")? {
        //....
    }