Trait ckb_rocksdb::ops::GetProperty
source · pub trait GetProperty {
// Required methods
fn property_value(&self, name: &str) -> Result<Option<String>, Error>;
fn property_int_value(&self, name: &str) -> Result<Option<u64>, Error>;
}
Required Methods§
sourcefn property_value(&self, name: &str) -> Result<Option<String>, Error>
fn property_value(&self, name: &str) -> Result<Option<String>, Error>
Retrieves a RocksDB property by name.
For a full list of properties, see https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L428-L634
sourcefn property_int_value(&self, name: &str) -> Result<Option<u64>, Error>
fn property_int_value(&self, name: &str) -> Result<Option<u64>, Error>
Retrieves a RocksDB property and casts it to an integer.
For a full list of properties that return int values, see https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L654-L689