pub struct TransactionFinalize { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.