Documentation
¶
Index ¶
- Constants
- func Load()
- type DBModel
- type SQLiteKVS
- func (s *SQLiteKVS) Close() error
- func (s *SQLiteKVS) Del(k string) error
- func (s *SQLiteKVS) GetCfg() any
- func (s *SQLiteKVS) Load(k string) (any, bool, error)
- func (s *SQLiteKVS) LoadAll() (map[string]any, error)
- func (s *SQLiteKVS) LoadAllAsString() (map[string]string, error)
- func (s *SQLiteKVS) LoadAndDelete(k string) (any, bool, error)
- func (s *SQLiteKVS) LoadAsBool(k string) (bool, error)
- func (s *SQLiteKVS) LoadAsFloat(k string) (float64, error)
- func (s *SQLiteKVS) LoadAsFloatOr(k string, d float64) (float64, error)
- func (s *SQLiteKVS) LoadAsInt(k string) (int, error)
- func (s *SQLiteKVS) LoadAsIntOr(k string, d int) (int, error)
- func (s *SQLiteKVS) LoadAsString(k string) (string, error)
- func (s *SQLiteKVS) LoadAsStringOr(k string, d string) (string, error)
- func (s *SQLiteKVS) LoadAsUint(k string) (uint, error)
- func (s *SQLiteKVS) LoadAsUintOr(k string, d uint) (uint, error)
- func (s *SQLiteKVS) LoadOrStore(k string, v any) (any, bool, error)
- func (s *SQLiteKVS) Open() error
- func (s *SQLiteKVS) Range(f func(k string, v any) bool) error
- func (s *SQLiteKVS) Store(k string, v any) error
- func (s *SQLiteKVS) StoreAsString(k string, v any) error
- func (s *SQLiteKVS) Type() any
- type SQLiteKVSCfg
Constants ¶
View Source
const (
TypeSQLite kvs.Type = "sqlite"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SQLiteKVS ¶
type SQLiteKVS struct { *SQLiteKVSCfg // contains filtered or unexported fields }
func NewSQLiteKVS ¶
func NewSQLiteKVS() *SQLiteKVS
func (*SQLiteKVS) LoadAllAsString ¶ added in v0.1.0
func (*SQLiteKVS) LoadAsFloatOr ¶
func (*SQLiteKVS) LoadAsStringOr ¶
type SQLiteKVSCfg ¶
type SQLiteKVSCfg struct { Path string `json:"path" yaml:"path" validate:"required"` Table string `json:"table" yaml:"table"` PoolSize int `json:"poolSize" yaml:"poolSize"` }
func NewSQLiteKVSCfg ¶
func NewSQLiteKVSCfg() *SQLiteKVSCfg
Click to show internal directories.
Click to hide internal directories.