Versions in this module Expand all Collapse all v1 v1.6.0 Dec 24, 2024 Changes in this version + var Ctx = context.TODO() + func NewDB(url string) (database.Storage, error) + type EtcDBatch struct + func (b *EtcDBatch) Delete(key []byte) (err error) + func (b *EtcDBatch) Put(key []byte, value []byte) (err error) + func (b *EtcDBatch) Write() (err error) + type EtcDStorage struct + func (s *EtcDStorage) Close() error + func (s *EtcDStorage) CompactDB() error + func (s *EtcDStorage) CreateBatch() database.Batch + func (s *EtcDStorage) CreateTemporary() (database.Storage, error) + func (s *EtcDStorage) Delete(key []byte) (err error) + func (s *EtcDStorage) Drop() error + func (s *EtcDStorage) FetchByPrefix(prefix []byte) [][]byte + func (s *EtcDStorage) Get(key []byte) (value []byte, err error) + func (s *EtcDStorage) HasPrefix(prefix []byte) bool + func (s *EtcDStorage) KeysByPrefix(prefix []byte) [][]byte + func (s *EtcDStorage) Open() error + func (s *EtcDStorage) OpenTransaction() (database.Transaction, error) + func (s *EtcDStorage) ProcessByPrefix(prefix []byte, proc database.StorageProcessor) error + func (s *EtcDStorage) Put(key []byte, value []byte) (err error) + type WriteOptions struct + NoWriteMerge bool + Sync bool