Versions in this module Expand all Collapse all v0 v0.0.1 Sep 15, 2024 Changes in this version + var ErrJSON = errors.New("json error") + var ErrNotFound = errors.New("not found") + var ErrSync = errors.New("sync error") + type DB struct + func Open(path string, opts ...Option) (*DB, error) + func (db *DB) Delete(key string) error + func (db *DB) Get(key string, val interface{}) error + func (db *DB) GetRaw(key string) (json.RawMessage, error) + func (db *DB) Iter(fn func(key string, value json.RawMessage) error) + func (db *DB) Save() error + func (db *DB) Set(key string, val any) error + func (db *DB) SetRaw(key string, val json.RawMessage) error + type Option int64 + const OptSync