Struct persy::Persy [] [src]

pub struct Persy { /* fields omitted */ }

Methods

impl Persy
[src]

Create a new database file.

Errors

if the file already exist fail.

Open a database file.

The file should have been created with Persy::create

Errors

if the file does not exist fail.

Begin a new transaction.

The isolation level is 'read_commited', for commit it call prepare_commit and commit

create a new record

This function return an id that can be used by read_record and read_record_tx, the record content can be read only with the read_record_tx till the transacion is commited.

Read the record content considering eventual in transaction changes.

Read the record content from persistent data.

Scan for persistent records

update the record content.

This updated content can be read only with the read_record_tx till the transacion is commited.

delete a record.

The record will result deleted only reading it whit read_record_tx till the transacion is commited.

Rollback a not yet prepared transaction.

Prepare to commit a transaction, it will lock all the records involved in the transaction till a commit or rollback_prepared is called.

Rollback a prepared commit.

Finalize the commit result of a prepared commit.

Trait Implementations

impl Clone for Persy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more