VersionedStore uses inverted version encoding and reverse seeks for maximum performance
| 59 | |
| 60 | // VersionedStore uses inverted version encoding and reverse seeks for maximum performance |
| 61 | type 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 |
| 71 | func NewVersionedStore(db pebble.Reader, batch *pebble.Batch, version uint64) *VersionedStore { |
nothing calls this directly
no outgoing calls
no test coverage detected