Trait rorm_sql::insert::Insert

source ·
pub trait Insert<'post_build> {
    fn rollback_transaction(self) -> Self;
    fn build(self) -> (String, Vec<Value<'post_build>>);
}
Expand description

Trait representing a insert builder.

Required Methods

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.

This method is used to build the INSERT query. It returns the build query as well as a vector of values to bind to it.

Implementors