func (tx *Tx) Rollback() error {
	err := tx.config.driver.(*txDriver).tx.Rollback()
	tx.mu.Lock()
	defer tx.mu.Unlock()
	for _, f := range tx.onRollback {
		f(err)
	}
	return err
}
// Rollback rollbacks the transaction.
Rollback rollbacks the transaction.
// Rollback rollbacks the transaction .
func (tx *Tx) Rollback() error {
	err := tx.config.driver.(*txDriver).tx.Rollback()
	tx.mu.Lock()
	defer tx.mu.Unlock()
	for _, f := range tx.onRollback {
		f(err)
	}
	return err
}
func ( tx * Tx ) Rollback ( ) error { err := tx . config . driver . ( * txDriver ) . tx . Rollback ( ) tx . mu . Lock ( ) defer tx . mu . Unlock ( ) for _ , f := range tx . onRollback { f ( err ) } return err }
Rollback rollbacks the transaction.
Rollback rollbacks the transaction .