Struct persy::TransactionFinalize[][src]

pub struct TransactionFinalize { /* fields omitted */ }
Expand description

prepared transaction state

Implementations

Rollback a prepared commit.

All the modification are rolled back and all the used resources are put released

Example
let mut tx = persy.begin()?;
//Do what ever operations on the records
let data = vec![1;20];
tx.insert("seg", &data)?;
let prepared = tx.prepare()?;
prepared.rollback()?;

Finalize the commit result of a prepared commit.

All the operation done on the transaction are finalized all the lock released, all the old resources are released for reuse.

Example
let mut tx = persy.begin()?;
let prepared = tx.prepare()?;
prepared.commit()?;

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.