Skip to main content

TransactionVTab

Trait TransactionVTab 

Source
pub trait TransactionVTab<'vtab>: UpdateVTab<'vtab> {
    // Provided methods
    fn begin(&mut self) -> Result<()> { ... }
    fn sync(&mut self) -> Result<()> { ... }
    fn commit(&mut self) -> Result<()> { ... }
    fn rollback(&mut self) -> Result<()> { ... }
}
Expand description

Writable virtual table instance with transaction support trait.

See SQLite doc

Provided Methods§

Source

fn begin(&mut self) -> Result<()>

Start a new transaction

Source

fn sync(&mut self) -> Result<()>

Begin two-phase commit

Source

fn commit(&mut self) -> Result<()>

Commit the current transaction

Source

fn rollback(&mut self) -> Result<()>

Abandon the current transaction

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§