Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2020 Changes in this version + var ErrNoResult = errors.New("store return no result") + func InitStore(ctx *cli.Context) + type Store struct + func GetStore() *Store + func (s *Store) AddStoreInfo(tp int, tblName, keyName, indexName string) + func (s *Store) DeleteObject(storeType int, x StoreObjector) error + func (s *Store) Exit() + func (s *Store) LoadArray(storeType int, storeIndex int64, pool *sync.Pool) ([]interface{}, error) + func (s *Store) LoadObject(storeType int, keyValue interface{}, x StoreObjector) error + func (s *Store) MigrateDbTable(tblName string, indexNames ...string) error + func (s *Store) SaveFields(storeType int, x StoreObjector, fields map[string]interface{}) error + func (s *Store) SaveObject(storeType int, x StoreObjector) error + type StoreInfo struct + type StoreObjector interface + AfterLoad func() error + GetObjID func() int64 + GetStoreIndex func() int64