Update db.pxd

This commit is contained in:
iFA 2020-07-19 14:21:03 +02:00 committed by GitHub
parent 8865320820
commit a3848007e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,28 @@ cdef extern from "rocksdb/db.h" namespace "rocksdb":
SequenceNumber smallest_seqno SequenceNumber smallest_seqno
SequenceNumber largest_seqno SequenceNumber largest_seqno
# cdef struct SstFileMetaData:
# uint64_t size
# string name
# uint64_t file_number
# string db_path
# string smallestkey
# string largestkey
# SequenceNumber smallest_seqno
# SequenceNumber largest_seqno
# cdef struct LevelMetaData:
# int level
# uint64_t size
# string largestkey
# LiveFileMetaData files
cdef struct ColumnFamilyMetaData:
uint64_t size
uint64_t file_count
# string largestkey
# LevelMetaData levels
cdef cppclass Range: cdef cppclass Range:
Range(const Slice&, const Slice&) Range(const Slice&, const Slice&)
@ -156,6 +178,7 @@ cdef extern from "rocksdb/db.h" namespace "rocksdb":
Status DeleteFile(string) nogil except+ Status DeleteFile(string) nogil except+
void GetLiveFilesMetaData(vector[LiveFileMetaData]*) nogil except+ void GetLiveFilesMetaData(vector[LiveFileMetaData]*) nogil except+
void GetColumnFamilyMetaData(ColumnFamilyHandle*, ColumnFamilyMetaData*) nogil except+
ColumnFamilyHandle* DefaultColumnFamily() ColumnFamilyHandle* DefaultColumnFamily()