pub struct Config {Show 15 fields
pub memory_file_path: String,
pub transport: Transport,
pub bind_addr: String,
pub durability: Durability,
pub auth_token: Option<Arc<str>>,
pub mmap_size: i64,
pub page_size: i64,
pub cache_size_kb: i64,
pub busy_timeout_ms: u64,
pub wal_flush_ms: u64,
pub lru_cache_size: usize,
pub read_pool_size: usize,
pub tls_cert: Option<PathBuf>,
pub tls_key: Option<PathBuf>,
pub vectors_enabled: bool,
}Fields§
§memory_file_path: String§transport: Transport§bind_addr: String§durability: Durability§auth_token: Option<Arc<str>>Optional bearer token required on the tcp and http transports. When
None, those transports accept unauthenticated connections (stdio is
always local and never authenticated).
mmap_size: i64§page_size: i64PRAGMA page_size in bytes (fresh DB only).
cache_size_kb: i64PRAGMA cache_size magnitude in KiB.
busy_timeout_ms: u64PRAGMA busy_timeout in milliseconds.
wal_flush_ms: u64Interval in milliseconds for the background wal_checkpoint(PASSIVE)
flush. 0 disables it (rely on SQLite auto-checkpoint + maintenance).
lru_cache_size: usize§read_pool_size: usizeSize of the read-only connection pool (concurrent reads). Always >= 1.
tls_cert: Option<PathBuf>PEM certificate chain for serving the http transport over TLS (HTTPS).
None (the default) keeps the transport plaintext. Engaged only when
both tls_cert and tls_key are set.
tls_key: Option<PathBuf>PEM private key matching tls_cert.
vectors_enabled: boolEnable the vector / semantic-search subsystem (vector_* + hybrid_search
tools backed by a usearch HNSW index). Off by default.
Implementations§
Source§impl Config
impl Config
Sourcepub fn sqlite_tuning(&self) -> SqliteTuning
pub fn sqlite_tuning(&self) -> SqliteTuning
Build the SQLite pragma tuning from this config, keeping the fixed
journal_size_limit default.
pub fn from_args(args: &Args) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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