code: func (db *baseDB) RunInTransaction(fn func(*Tx) error) error {
  	tx, err := db.Begin()
  	if err != nil {
  		return err
  	}
  	return tx.RunInTransaction(fn)
  }
docs: // RunInTransaction runs a function in a transaction. If function
  // returns an error transaction is rollbacked, otherwise transaction
  // is committed.