Skip to main content

CopyTransaction

Trait CopyTransaction 

Source
pub trait CopyTransaction: Send {
    // Required methods
    fn apply_statement(
        &mut self,
        statement: &str,
    ) -> impl Future<Output = Result<()>>;
    fn commit(self) -> impl Future<Output = Result<()>>;
}
Expand description

A transaction on a copy destination. Returned by CopyDestination::begin_transaction. All transactional DDL statements should be applied through this type, and the transaction must be committed when done.

Required Methods§

Source

fn apply_statement( &mut self, statement: &str, ) -> impl Future<Output = Result<()>>

Apply a DDL statement within this transaction.

Source

fn commit(self) -> impl Future<Output = Result<()>>

Commit the transaction.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§