code: func (db *Database) Commit() error {
  	err := db.db.(*sql.Tx).Commit()
  	// restore connection
  	db.db = db.connection
  	db.clear()
  	return err
  }
docs: // Commit commits the transaction.
  // Panics if the transaction is not started (you have to call Begin before)