pub enum StatementCacheMode {
Global {
max_statements: usize,
},
PerTenant {
max_tenants: usize,
statements_per_tenant: usize,
},
Disabled,
}Expand description
Cache mode for prepared statements.
Variants§
Global
Single global cache (for RLS-based isolation). All tenants share the same prepared statements.
PerTenant
Per-tenant statement caches (for schema-based isolation). Each tenant has their own statements because schemas differ.
Fields
Disabled
Disabled - don’t cache statements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheMode
impl RefUnwindSafe for CacheMode
impl Send for CacheMode
impl Sync for CacheMode
impl Unpin for CacheMode
impl UnwindSafe for CacheMode
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