pub struct Capabilities {
pub durable: bool,
pub encryption: bool,
pub wal: bool,
pub full_text_search: bool,
pub rtree: bool,
pub external_changes: bool,
pub unicode_fold: bool,
}Expand description
What a driver can and cannot do, so the container degrades visibly instead of silently.
Fields§
§durable: boolSurvives a relaunch (false for memory stores and the Recorder).
encryption: bool§wal: bool§full_text_search: bool§rtree: bool§external_changes: boolAnother connection’s committed writes are detectable (SQLite’s PRAGMA data_version
counter), so ModelContainer::check_external can merge them. The built-in driver
claims it for file databases on native targets; memory databases (no second connection
can reach one), the Recorder, and the web engine (its OPFS access is exclusive) do not.
unicode_fold: boolThe connection has day_fold registered (Rust’s full-Unicode to_lowercase as a
scalar SQL function), so case-insensitive text predicates compile to exact SQL. The
built-in native driver registers it at open; without it those predicates take the
fallback path (SQL for everything else, the folding test re-checked in memory).
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
impl Copy for Capabilities
Source§impl Debug for Capabilities
impl Debug for Capabilities
Auto Trait Implementations§
impl Forget for Capabilities
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more