From bb65693abe137ec7ab9e1668ca72a82f86eccf52 Mon Sep 17 00:00:00 2001 From: Lucjan Suski Date: Wed, 30 Oct 2019 08:49:38 +0100 Subject: [PATCH] Add example --- src/db_options.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/db_options.rs b/src/db_options.rs index 25aedc4..b5339c2 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -286,6 +286,15 @@ impl Options { /// So users of this feature may see increased memory usage. /// /// Default: `0` + /// + /// # Example + /// + /// ``` + /// use rocksdb::Options; + /// + /// let mut opts = Options::default(); + /// opts.set_compression_options(4, 5, 6, 7); + /// ``` pub fn set_compression_options( &mut self, w_bits: c_int,