Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions rocksdb/_rocksdb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions rocksdb/options.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down