2014-01-13 19:52:22 +01:00
|
|
|
from libcpp cimport bool as cpp_bool
|
|
|
|
from libcpp.string cimport string
|
|
|
|
|
|
|
|
cdef extern from "rocksdb/status.h" namespace "rocksdb":
|
|
|
|
cdef cppclass Status:
|
|
|
|
Status()
|
2014-01-17 20:06:17 +01:00
|
|
|
cpp_bool ok() nogil
|
|
|
|
cpp_bool IsNotFound() nogil const
|
|
|
|
cpp_bool IsCorruption() nogil const
|
|
|
|
cpp_bool IsNotSupported() nogil const
|
|
|
|
cpp_bool IsInvalidArgument() nogil const
|
|
|
|
cpp_bool IsIOError() nogil const
|
|
|
|
cpp_bool IsMergeInProgress() nogil const
|
|
|
|
cpp_bool IsIncomplete() nogil const
|
|
|
|
string ToString() nogil except+
|