Versions in this module Expand all Collapse all v1 v1.4.0 Sep 5, 2018 v1.3.2 Jun 12, 2018 Changes in this version + var ErrNameInvalid = errors.New("name is empty") + var ErrNoRow = errors.New("no rows in result set") + func Delete(id int) error + type Account struct + ID int + Name string + UUID uuid.UUID + func AccountOne(id int) (Account, error) + func AccountsAll(q string) ([]Account, error) + func (a Account) Insert() (int, error) + func (a Account) Update() error + type AddAccount struct + Name string + func (a AddAccount) Validation() error + type Admin struct + ID int + Name string + type Bottle struct + Account Account + ID int + Name string + func BottleOne(id int) (*Bottle, error) + func BottlesAll() ([]Bottle, error) + type UpdateAccount struct + Name string + func (a UpdateAccount) Validation() error