pub struct ProjectionConfig {
pub path: PathBuf,
pub wal_mode: bool,
pub synchronous: SynchronousMode,
pub schema_version: u32,
pub cache_size: i32,
pub read_pool: ReadPoolConfig,
}Expand description
Configuration for projection store
Fields§
§path: PathBufPath to the SQLite database file
wal_mode: boolEnable WAL mode Default: true
synchronous: SynchronousModeSQLite synchronous mode
schema_version: u32Target schema version for migrations Default: 1
cache_size: i32SQLite cache size (in pages, negative = KB) Default: -64000 (64MB)
read_pool: ReadPoolConfigRead pool configuration (optional, disabled by default)
When enabled, maintains a pool of read-only connections for concurrent read access without blocking writes.
Implementations§
Source§impl ProjectionConfig
impl ProjectionConfig
pub fn new(path: PathBuf) -> Self
pub fn with_synchronous(self, synchronous: SynchronousMode) -> Self
pub fn with_wal_mode(self, wal_mode: bool) -> Self
Sourcepub fn with_read_pool(self, config: ReadPoolConfig) -> Self
pub fn with_read_pool(self, config: ReadPoolConfig) -> Self
Configure read connection pooling
Sourcepub fn with_read_pool_size(self, pool_size: usize) -> Self
pub fn with_read_pool_size(self, pool_size: usize) -> Self
Enable read pooling with the specified pool size
Trait Implementations§
Source§impl Clone for ProjectionConfig
impl Clone for ProjectionConfig
Source§fn clone(&self) -> ProjectionConfig
fn clone(&self) -> ProjectionConfig
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 ProjectionConfig
impl Debug for ProjectionConfig
Source§impl<'de> Deserialize<'de> for ProjectionConfig
impl<'de> Deserialize<'de> for ProjectionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectionConfig
impl RefUnwindSafe for ProjectionConfig
impl Send for ProjectionConfig
impl Sync for ProjectionConfig
impl Unpin for ProjectionConfig
impl UnwindSafe for ProjectionConfig
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