pub enum CacheSpill {
Enabled(bool),
Pages(i32),
}Expand description
Cache spill settings for SQLite databases
Variants§
Enabled(bool)
Enable or disable cache spilling
§Example
let setting = CacheSpill::Enabled(true);
assert_eq!(setting.to_sql().sql(), "ON");Pages(i32)
Set the spill threshold (pages)
§Example
let setting = CacheSpill::Pages(1000);
assert_eq!(setting.to_sql().sql(), "1000");Trait Implementations§
Source§impl Clone for CacheSpill
impl Clone for CacheSpill
Source§fn clone(&self) -> CacheSpill
fn clone(&self) -> CacheSpill
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheSpill
impl Debug for CacheSpill
impl Eq for CacheSpill
Source§impl PartialEq for CacheSpill
impl PartialEq for CacheSpill
impl StructuralPartialEq for CacheSpill
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
Auto Trait Implementations§
impl Freeze for CacheSpill
impl RefUnwindSafe for CacheSpill
impl Send for CacheSpill
impl Sync for CacheSpill
impl Unpin for CacheSpill
impl UnsafeUnpin for CacheSpill
impl UnwindSafe for CacheSpill
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more