pub enum TransactionMode {
ReadOnly,
ReadWrite,
VersionChange,
}
Expand description
Specifies the transaction mode.
Variants§
ReadOnly
The transaction is only allowed to read data.
ReadWrite
The transaction is allowed to read, modify and delete data from existing object stores.
VersionChange
The transaction is allowed to read, modify and delete data from existing object stores, and can also create and
remove object stores and indexes. This type of transaction can’t be manually created, but instead is created
automatically when an upgradeneeded
event is fired.
Trait Implementations§
Source§impl Clone for TransactionMode
impl Clone for TransactionMode
Source§fn clone(&self) -> TransactionMode
fn clone(&self) -> TransactionMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionMode
impl Debug for TransactionMode
Source§impl From<TransactionMode> for JsValue
impl From<TransactionMode> for JsValue
Source§fn from(direction: TransactionMode) -> JsValue
fn from(direction: TransactionMode) -> JsValue
Converts to this type from the input type.
Source§impl PartialEq for TransactionMode
impl PartialEq for TransactionMode
Source§impl TryFrom<IdbTransactionMode> for TransactionMode
impl TryFrom<IdbTransactionMode> for TransactionMode
Source§fn try_from(
value: IdbTransactionMode,
) -> Result<TransactionMode, <TransactionMode as TryFrom<IdbTransactionMode>>::Error>
fn try_from( value: IdbTransactionMode, ) -> Result<TransactionMode, <TransactionMode as TryFrom<IdbTransactionMode>>::Error>
Performs the conversion.
Source§impl TryFrom<JsValue> for TransactionMode
impl TryFrom<JsValue> for TransactionMode
impl Copy for TransactionMode
impl Eq for TransactionMode
impl StructuralPartialEq for TransactionMode
Auto Trait Implementations§
impl Freeze for TransactionMode
impl RefUnwindSafe for TransactionMode
impl Send for TransactionMode
impl Sync for TransactionMode
impl Unpin for TransactionMode
impl UnwindSafe for TransactionMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more