Versions in this module Expand all Collapse all v1 v1.12.1 Jan 10, 2025 Changes in this version + const Name + var DefaultConfig = Config + func New(file string, configBytes []byte, log logging.Logger, _ string, ...) (database.Database, error) + type Config struct + BytesPerSync int + CacheSize int64 + MaxConcurrentCompactions int + MaxOpenFiles int + MemTableSize uint64 + MemTableStopWritesThreshold int + WALBytesPerSync int + type Database struct + func (db *Database) Close() error + func (db *Database) Compact(start []byte, end []byte) error + func (db *Database) Delete(key []byte) error + func (db *Database) Get(key []byte) ([]byte, error) + func (db *Database) Has(key []byte) (bool, error) + func (db *Database) HealthCheck(_ context.Context) (interface{}, error) + func (db *Database) NewBatch() database.Batch + func (db *Database) NewIterator() database.Iterator + func (db *Database) NewIteratorWithPrefix(prefix []byte) database.Iterator + func (db *Database) NewIteratorWithStart(start []byte) database.Iterator + func (db *Database) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator + func (db *Database) Put(key []byte, value []byte) error