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()?;