pub fn start_transaction_implicit(mut self, wall_time: DateTime<Utc>, stmts: usize) -> Self {
        if let TransactionStatus::Default = self.transaction {
            let txn = Transaction {
                pcx: PlanContext::new(wall_time, self.vars.qgm_optimizations()),
                ops: TransactionOps::None,
                write_lock_guard: None,
                access: None,
            };
            match stmts {
                1 => self.transaction = TransactionStatus::Started(txn),
                n if n > 1 => self.transaction = TransactionStatus::InTransactionImplicit(txn),
                _ => {}
            }
        }
        self
    }
/// Starts either a single statement or implicit transaction based on the
/// number of statements, but only if no transaction has been started already.
Starts either a single statement or implicit transaction based on the
number of statements, but only if no transaction has been started already.
Starts either a single statement or implicit transaction based on the number of statements but only if no transaction has been started already .
pub fn start_transaction_implicit(mut self, wall_time: DateTime<Utc>, stmts: usize) -> Self {
        if let TransactionStatus::Default = self.transaction {
            let txn = Transaction {
                pcx: PlanContext::new(wall_time, self.vars.qgm_optimizations()),
                ops: TransactionOps::None,
                write_lock_guard: None,
                access: None,
            };
            match stmts {
                1 => self.transaction = TransactionStatus::Started(txn),
                n if n > 1 => self.transaction = TransactionStatus::InTransactionImplicit(txn),
                _ => {}
            }
        }
        self
    }
pub fn start_transaction_implicit ( mut self , wall_time : DateTime < Utc > , stmts : usize ) -> Self { if let TransactionStatus :: Default = self . transaction { let txn = Transaction { pcx : PlanContext :: new ( wall_time , self . vars . qgm_optimizations ( ) ) , ops : TransactionOps :: None , write_lock_guard : None , access : None , } ; match stmts { 1 => self . transaction = TransactionStatus :: Started ( txn ) , n if n > 1 => self . transaction = TransactionStatus :: InTransactionImplicit ( txn ) , _ => { } } } self }
Starts either a single statement or implicit transaction based on the
number of statements, but only if no transaction has been started already.
Starts either a single statement or implicit transaction based on the number of statements but only if no transaction has been started already .
mut self
wall_time
DateTime<Utc>
stmts
usize
mut self
wall_time
DateTime<Utc>
stmts
usize