Versions in this module Expand all Collapse all v0 v0.2.0 Dec 14, 2020 Changes in this version + var ErrMalformedKey = errors.New("malformed key or zero key fields") + type Store struct + func (p *Store) Create(data interface{}) ([]string, error) + func (p *Store) Delete(data interface{}, ids ...string) error + func (p *Store) Read(data interface{}, ftr []string, ids ...string) ([]interface{}, error) + func (p *Store) Select(x interface{}, ftr []string) ([]interface{}, error) + func (p *Store) Take(table interface{}, filter []string, seek string, limit int) ([]interface{}, error) + func (p *Store) Tidy() + func (p *Store) Update(data interface{}, ids ...string) error + func (p *Store) WithDB(f func(*badger.DB) error) (err error) v0.1.0 Dec 5, 2020 Changes in this version + var ErrInvalidParameter = errors.New("invalid parameter") + var ErrNoPrimaryID = errors.New("primary ID field does not exist") + var ErrNoRecord = errors.New("record does not exist") + var ErrPrimaryIDUpdate = errors.New("cannot update primary ID field") + var ErrReservedWord = errors.New("reserved identifier used") + var ErrTypeConversion = errors.New("type conversion") + type DB struct + type Pivot struct + func New(path, schema string) *Pivot + func (p *Pivot) Create(data interface{}) ([]string, error) + func (p *Pivot) Delete(data interface{}, ids ...string) error + func (p *Pivot) Read(data interface{}, ids ...string) ([]interface{}, error) + func (p *Pivot) Select(x interface{}) ([]interface{}, error) + func (p *Pivot) Tidy() + func (p *Pivot) Update(data interface{}, ids ...string) error + func (p *Pivot) WithDB(f func(*badger.DB) error) (err error)