diff --git a/rocksdb/_rocksdb.pyx b/rocksdb/_rocksdb.pyx index edd856ab..658a400a 100644 --- a/rocksdb/_rocksdb.pyx +++ b/rocksdb/_rocksdb.pyx @@ -1390,6 +1390,31 @@ cdef class Options(ColumnFamilyOptions): def __set__(self, value): self.opts.allow_mmap_writes = value + property use_direct_reads: + def __get__(self): + return self.opts.use_direct_reads + def __set__(self, value): + self.opts.use_direct_reads = value + + property use_direct_io_for_flush_and_compaction: + def __get__(self): + return self.opts.use_direct_io_for_flush_and_compaction + def __set__(self, value): + self.opts.use_direct_io_for_flush_and_compaction = value + + property writable_file_max_buffer_size: + def __get__(self): + return self.opts.writable_file_max_buffer_size + def __set__(self, value): + self.opts.writable_file_max_buffer_size = value + + + property allow_fallocate: + def __get__(self): + return self.opts.allow_fallocate + def __set__(self, value): + self.opts.allow_fallocate = value + property is_fd_close_on_exec: def __get__(self): return self.opts.is_fd_close_on_exec diff --git a/rocksdb/options.pxd b/rocksdb/options.pxd index 894968df..86b30baf 100644 --- a/rocksdb/options.pxd +++ b/rocksdb/options.pxd @@ -90,6 +90,7 @@ cdef extern from "rocksdb/options.h" namespace "rocksdb": cpp_bool allow_mmap_writes cpp_bool use_direct_reads cpp_bool use_direct_io_for_flush_and_compaction + size_t writable_file_max_buffer_size cpp_bool allow_fallocate cpp_bool is_fd_close_on_exec cpp_bool skip_log_error_on_recovery