Struct grebedb::Options [−][src]
Database configuration options.
Fields
open_mode: OpenModeOption when opening a database. Default: LoadOrCreate.
keys_per_node: usizeMaximum number of keys per node. Default: 1024.
This value specifies the threshold when node is split into two and the tree is rebalanced.
page_cache_size: usizeNumber of pages held in memory cache. Default: 64.
file_locking: boolWhether to use file locking to prevent corruption by multiple processes. Default: true.
file_sync: SyncOptionLevel of file synchronization to increase durability on disk file systems. Default: Data
automatic_flush: boolWhether to flush the data to the file system periodically when a database operation is performed. Default: true.
When true, data is flushed when the database is dropped or when enough modifications accumulate. Setting this option to false allows you to manually persist changes at more optimal points.
There is no background maintenance thread that does automatic flushing; automatic flushing occurs when a database modifying function, such as put() or remove(), is called.
automatic_flush_threshold: usizeNumber of modifications required for automatic flush to be considered. Default: 2048
When the threshold is reached after 300 seconds, or the threshold × 2 is reached after 60 seconds, a flush is scheduled to be performed on the next modification.
compression_level: CompressionLevelCompression level for each page. Default: Low.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,