Skip to main content

StatementControl

Trait StatementControl 

Source
pub trait StatementControl {
    // Required methods
    fn transaction_failed(&self) -> bool;
    fn run_transaction_statement(
        &self,
        statement: TransactionStmt,
    ) -> Result<(), SQLError>;
    fn set_constraints(
        &self,
        requested: &[SetConstraintName],
        deferred: bool,
        nested_statement: bool,
    ) -> Result<(), SQLError>;
}

Required Methods§

Source

fn transaction_failed(&self) -> bool

Source

fn run_transaction_statement( &self, statement: TransactionStmt, ) -> Result<(), SQLError>

Source

fn set_constraints( &self, requested: &[SetConstraintName], deferred: bool, nested_statement: bool, ) -> Result<(), SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§