pub fn start_transaction(
        mut self,
        wall_time: DateTime<Utc>,
        access: Option<TransactionAccessMode>,
    ) -> Self {
        match self.transaction {
            TransactionStatus::Default | TransactionStatus::Started(_) => {
                self.transaction = TransactionStatus::InTransaction(Transaction {
                    pcx: PlanContext::new(wall_time, self.vars.qgm_optimizations()),
                    ops: TransactionOps::None,
                    write_lock_guard: None,
                    access,
                });
            }
            TransactionStatus::InTransactionImplicit(txn) => {
                self.transaction = TransactionStatus::InTransaction(txn);
            }
            TransactionStatus::InTransaction(_) => {}
            TransactionStatus::Failed(_) => unreachable!(),
        };
        self
    }
/// Starts an explicit transaction, or changes an implicit to an explicit
/// transaction.
Starts an explicit transaction, or changes an implicit to an explicit
transaction.
Starts an explicit transaction or changes an implicit to an explicit transaction .
pub fn start_transaction(
        mut self,
        wall_time: DateTime<Utc>,
        access: Option<TransactionAccessMode>,
    ) -> Self {
        match self.transaction {
            TransactionStatus::Default | TransactionStatus::Started(_) => {
                self.transaction = TransactionStatus::InTransaction(Transaction {
                    pcx: PlanContext::new(wall_time, self.vars.qgm_optimizations()),
                    ops: TransactionOps::None,
                    write_lock_guard: None,
                    access,
                });
            }
            TransactionStatus::InTransactionImplicit(txn) => {
                self.transaction = TransactionStatus::InTransaction(txn);
            }
            TransactionStatus::InTransaction(_) => {}
            TransactionStatus::Failed(_) => unreachable!(),
        };
        self
    }
pub fn start_transaction ( mut self , wall_time : DateTime < Utc > , access : Option < TransactionAccessMode > , ) -> Self { match self . transaction { TransactionStatus :: Default | TransactionStatus :: Started ( _ ) => { self . transaction = TransactionStatus :: InTransaction ( Transaction { pcx : PlanContext :: new ( wall_time , self . vars . qgm_optimizations ( ) ) , ops : TransactionOps :: None , write_lock_guard : None , access , } ) ; } TransactionStatus :: InTransactionImplicit ( txn ) => { self . transaction = TransactionStatus :: InTransaction ( txn ) ; } TransactionStatus :: InTransaction ( _ ) => { } TransactionStatus :: Failed ( _ ) => unreachable ! ( ) , } ; self }
Starts an explicit transaction, or changes an implicit to an explicit
transaction.
Starts an explicit transaction or changes an implicit to an explicit transaction .
mut self
wall_time
DateTime<Utc>
access
Option<TransactionAccessMode>
mut self
wall_time
DateTime<Utc>
access
Option<TransactionAccessMode>