Versions in this module Expand all Collapse all v0 v0.14.4 Dec 16, 2024 Changes in this version + const DB_VERSION + type MDBXBackend struct + EnableHLLCacheFor func(kind int) (useCache bool, skipSavingActualEvent bool) + MapSize int64 + MaxLimit int + MaxLimitNegentropy int + Path string + func (b *MDBXBackend) Close() + func (b *MDBXBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error) + func (b *MDBXBackend) CountEventsHLL(ctx context.Context, filter nostr.Filter, offset int) (int64, *hyperloglog.HyperLogLog, error) + func (b *MDBXBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error + func (b *MDBXBackend) Init() error + func (b *MDBXBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error) + func (b *MDBXBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error + func (b *MDBXBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error + func (b *MDBXBackend) Serial() []byte