func (db *Database) Rollback() (*Database, error) {
	var err error
	if db.transaction != nil {
		err = db.transaction.Rollback()
		db.transaction = nil
	} else {
		log.Errorf("there is an no transaction to rollback")
		err = fmt.Errorf("there is an no transaction to rollback")
	}
	return db, err
}
// Rollback rolls back an existing transaction.
Rollback rolls back an existing transaction.
// Rollback rolls back an existing transaction .
func (db *Database) Rollback() (*Database, error) {
	var err error
	if db.transaction != nil {
		err = db.transaction.Rollback()
		db.transaction = nil
	} else {
		log.Errorf("there is an no transaction to rollback")
		err = fmt.Errorf("there is an no transaction to rollback")
	}
	return db, err
}
func ( db * Database ) Rollback ( ) ( * Database , error ) { var err error if db . transaction != nil { err = db . transaction . Rollback ( ) db . transaction = nil } else { log . Errorf ( " " ) err = fmt . Errorf ( " " ) } return db , err }
Rollback rolls back an existing transaction.
Rollback rolls back an existing transaction .