Documentation
¶
Index ¶
- func NewFileDB[T any](filePath string) (types.DBCollectionInterface[T], error)
- type FileDB
- func (db *FileDB[T]) BatchSet(pairs []types.KeyValue[T]) (int, error)
- func (db *FileDB[T]) Get(key string) (T, bool)
- func (db *FileDB[T]) GetAll() []types.KeyValue[T]
- func (db *FileDB[T]) ScanGet(key string) (types.KeyValue[T], bool)
- func (db *FileDB[T]) Set(key string, value T) error
- func (db *FileDB[T]) StartInit()
- type FileDBState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileDBState ¶ added in v0.8.4
type FileDBState int
const ( FileDBStateNotStarted FileDBState = iota FileDBStateNotReady FileDBStateReady )
Click to show internal directories.
Click to hide internal directories.