pub fn commit(&mut self) -> Result<(), rusqlite::Error> {
        if let Some(tx) = self.tx.take() {
            tx.commit()?;
            self.committed = true;
        }
        Ok(())
    }
// Commits the transaction; if this succeeds the file won't be deleted on destruction
Commits the transaction; if this succeeds the file won't be deleted on destruction
Commits the transaction ; if this succeeds the file won ' t be deleted on destruction
pub fn commit(&mut self) -> Result<(), rusqlite::Error> {
        if let Some(tx) = self.tx.take() {
            tx.commit()?;
            self.committed = true;
        }
        Ok(())
    }
pub fn commit ( & mut self ) -> Result < ( ) , rusqlite :: Error > { if let Some ( tx ) = self . tx . take ( ) { tx . commit ( ) ? ; self . committed = true ; } Ok ( ( ) ) }
Commits the transaction; if this succeeds the file won't be deleted on destruction
Commits the transaction ; if this succeeds the file won ' t be deleted on destruction
&mut self
&mut self