Skip to content

Commit

Permalink
Add the rocksdb_options_set_bottommost_compression to the lib (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbibby authored Oct 27, 2023
1 parent df466b8 commit fba1951
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fba1951

Please sign in to comment.