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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".