pub enum StatementCacheMode {
Cached,
Uncached,
}Expand description
Whether SQLite-family backends should use their prepared statement cache.
This currently applies to SQLite and Turso paths that can choose between cached and uncached prepare calls. Other backends ignore it.
Variants§
Cached
Reuse backend statement caches where available.
Uncached
Prepare without inserting the SQL text into the backend statement cache.
Trait Implementations§
Source§impl Clone for StatementCacheMode
impl Clone for StatementCacheMode
Source§fn clone(&self) -> StatementCacheMode
fn clone(&self) -> StatementCacheMode
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 StatementCacheMode
impl Debug for StatementCacheMode
Source§impl Default for StatementCacheMode
impl Default for StatementCacheMode
Source§fn default() -> StatementCacheMode
fn default() -> StatementCacheMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for StatementCacheMode
impl PartialEq for StatementCacheMode
Source§fn eq(&self, other: &StatementCacheMode) -> bool
fn eq(&self, other: &StatementCacheMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StatementCacheMode
impl Eq for StatementCacheMode
impl StructuralPartialEq for StatementCacheMode
Auto Trait Implementations§
impl Freeze for StatementCacheMode
impl RefUnwindSafe for StatementCacheMode
impl Send for StatementCacheMode
impl Sync for StatementCacheMode
impl Unpin for StatementCacheMode
impl UnsafeUnpin for StatementCacheMode
impl UnwindSafe for StatementCacheMode
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