From fba1951810cd8ac2e2e43b8d8d453278044f21d6 Mon Sep 17 00:00:00 2001 From: Bibby Date: Fri, 27 Oct 2023 11:57:14 -0400 Subject: [PATCH] Add the rocksdb_options_set_bottommost_compression to the lib (#34) --- options.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options.go b/options.go index a8dafd8..c3a8981 100644 --- a/options.go +++ b/options.go @@ -417,6 +417,12 @@ func (opts *Options) SetCompression(value CompressionType) { C.rocksdb_options_set_compression(opts.c, C.int(value)) } +// SetBottommostCompression sets the compression algorithm for the nth level. +// Default: NoComprression +func (opts *Options) SetBottommostCompression(value CompressionType) { + C.rocksdb_options_set_bottommost_compression(opts.c, C.int(value)) +} + // SetCompressionPerLevel sets different compression algorithm per level. // // Different levels can have different compression policies. There