Enum idb_sys::TransactionMode
source · 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 IdbTransactionMode
impl From<TransactionMode> for IdbTransactionMode
source§fn from(value: TransactionMode) -> Self
fn from(value: TransactionMode) -> Self
Converts to this type from the input type.
source§impl From<TransactionMode> for JsValue
impl From<TransactionMode> for JsValue
source§fn from(direction: TransactionMode) -> Self
fn from(direction: TransactionMode) -> Self
Converts to this type from the input type.