pub struct WriteTransaction<'db> { /* private fields */ }
Expand description

A read/write transaction

Only a single WriteTransaction may exist at a time

Implementations

Set the desired durability level for writes made in this transaction Defaults to Durability::Immediate

Open the given table

The table will be created if it does not exist

Open the given table

The table will be created if it does not exist

Delete the given table

Returns a bool indicating whether the table existed

Delete the given table

Returns a bool indicating whether the table existed

List all the tables

List all the multimap tables

Commit the transaction

All writes performed in this transaction will be visible to future transactions, and are durable as consistent with the Durability level set by Self::set_durability

Abort the transaction

All writes performed in this transaction will be rolled back

Retrieves information about storage usage in the database

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.