Versions in this module Expand all Collapse all v0 v0.0.3 Jan 22, 2024 Changes in this version + func IsEmpty(err error) bool + type Action struct + Cache *Cache + Db *Database + Elems map[string]*Elem + Obj any + Table string + func (qt *Action) Delete(queryString string, queryValue ...any) error + func (qt *Action) Insert() error + func (qt *Action) Select(queryString string, queryValue ...any) ([]any, error) + func (qt *Action) SelectOne(queryString string, queryValue ...any) error + func (qt *Action) Update(queryString string, queryValue ...any) error + type Cache struct + Db *Database + Elems map[string]*Elem + ObjType reflect.Type + Table string + func (cache *Cache) Use(obj any) *Action + type Database struct + Caches map[reflect.Type]*Cache + Db *sql.DB + RWLock sync.RWMutex + func NewDatabase(driverName, dataSourceName string) (*Database, error) + func (db *Database) Load(obj any, table string) *Cache + func (db *Database) Use(obj any) *Action + type Elem struct + Name string + Tag string + Type reflect.StructField + Value reflect.Value + func (elem *Elem) Get() any + func (elem *Elem) Set(val any)