pub trait Insert<'post_build> {
// Required methods
fn rollback_transaction(self) -> Self;
fn build(self) -> (String, Vec<Value<'post_build>>);
}
Expand description
Trait representing a insert builder.
Required Methods§
Sourcefn rollback_transaction(self) -> Self
fn rollback_transaction(self) -> Self
Turns on ROLLBACK mode.
Only useful in case of an active transaction.
If the insert fails, the complete transaction will be rolled back. The default case is to just stop the transaction, but not rollback any prior successful executed queries.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.