MCPcopy
hub / github.com/canopy-network/canopy / VersionedStore

Struct VersionedStore

store/versioned_store.go:61–68  ·  view source on GitHub ↗

VersionedStore uses inverted version encoding and reverse seeks for maximum performance

Source from the content-addressed store, hash-verified

59
60// VersionedStore uses inverted version encoding and reverse seeks for maximum performance
61type VersionedStore struct {
62 db pebble.Reader
63 batch *pebble.Batch
64 closed bool
65 version uint64
66 keyBuffer []byte
67 decodeBuffer [][]byte
68}
69
70// NewVersionedStore creates a new versioned store
71func NewVersionedStore(db pebble.Reader, batch *pebble.Batch, version uint64) *VersionedStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected