Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + func GetField(fieldName string, value reflect.Value, locale i18n.Locale) (text string) + func GetID(value reflect.Value) string + func GetName(value reflect.Value, locale i18n.Locale) (text string) + func SetEntry(value reflect.Value, entry uint32) + func SortNamedTemplates(locale i18n.Locale, value reflect.Value) + type Bucket struct + Index *leveldb.DB + Sequence uint64 + Storage *leveldb.DB + Type reflect.Type + type BucketKey struct + Data []byte + Type BucketKeyType + type BucketKeyType uint8 + const BucketIndexSequence + const BucketKeyEntry + const BucketKeySequence + const BucketKeyStringID + const BucketKeyUint32ID + type Cache struct + Buckets map[reflect.Type]*Bucket + Dir string + func (c *Cache) Bucket(typeOf reflect.Type) (*Bucket, error) + func (c *Cache) BucketPath(typeOf reflect.Type) string + func (c *Cache) Clear(typeOf reflect.Type) + func (c *Cache) IndexPath(typeOf reflect.Type) string + func (c *Cache) Lookup(indexType BucketKeyType, key, value any) + func (c *Cache) QueryField(locale i18n.Locale, field string, regex string, limit int64, sliceptr any) error + func (c *Cache) QueryNames(locale i18n.Locale, regex string, limit int64, sliceptr any) error + func (c *Cache) Range(fn interface{}) + func (c *Cache) Size() uint64 + func (c *Cache) Store(value reflect.Value) + type Core struct + func NewCore(driver, source string) (*Core, error) + func (c *Core) AsyncTx(fn func(*Tx)) + func (c *Core) GetGameObjectTemplate(id string) (*models.GameObjectTemplate, error) + func (c *Core) GetGameObjectTemplateByEntry(entry uint32) (*models.GameObjectTemplate, error) + func (c *Core) GetItemTemplate(id string) (*models.ItemTemplate, error) + func (c *Core) GetItemTemplateByEntry(entry uint32) (*models.ItemTemplate, error) + func (c *Core) InitCache(dir string) error + func (c *Core) Println(args ...any) + func (db *Core) Query() *Query + type Query struct + Asc bool + Conditions []*QueryCondition + Core *Core + OrderByField int + ResultLimit int + func (q *Query) Get(sliceptr any) error + func (q *Query) Limit(limit int) *Query + func (q *Query) WhereFieldIs(fieldName string, value any) *Query + type QueryCondition struct + Field string + Flags QueryFlags + Likeness float64 + Param1 reflect.Value + type QueryFlags uint8 + const QueryEq + const QueryExact + const QueryGt + const QueryIs + const QueryLt + const QueryNot + type Store struct + func (s *Store) Range(fn func(k, v interface{}) bool) + type Tx struct