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 · 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
Source§impl PartialEq for CacheSpill
impl PartialEq for CacheSpill
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
fn to_sql(&self) -> SQL<'a, SQLiteValue<'a>>
Source§fn into_sql(self) -> SQL<'a, V>where
Self: Sized,
fn into_sql(self) -> SQL<'a, V>where
Self: Sized,
Consume self and return SQL without cloning.
Default delegates to
to_sql() (which clones). Types that own their SQL
(like SQL and SQLExpr) override this to avoid the clone.fn alias(&self, alias: &'static str) -> SQL<'a, V>
impl StructuralPartialEq 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 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