pub struct LibSqlConfig {
pub mode: LibSqlMode,
pub journal_mode: Option<String>,
pub synchronous: Option<String>,
pub sync_interval_seconds: Option<u64>,
}Expand description
Operator-provided libSQL settings.
Durability, WAL, and replica sync values are optional because this crate does not assume defaults for operator tunables; absent values remain unset until connection code applies only the values explicitly provided here.
Fields§
§mode: LibSqlModeConnection mode for the embedded libSQL store.
journal_mode: Option<String>Optional libSQL journal mode, such as a WAL mode chosen by the operator.
synchronous: Option<String>Optional libSQL synchronous setting chosen by the operator.
sync_interval_seconds: Option<u64>Optional replica sync interval in seconds, used only for embedded-replica mode.
Trait Implementations§
Source§impl Debug for LibSqlConfig
impl Debug for LibSqlConfig
Source§impl<'de> Deserialize<'de> for LibSqlConfig
impl<'de> Deserialize<'de> for LibSqlConfig
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 LibSqlConfig
impl RefUnwindSafe for LibSqlConfig
impl Send for LibSqlConfig
impl Sync for LibSqlConfig
impl Unpin for LibSqlConfig
impl UnsafeUnpin for LibSqlConfig
impl UnwindSafe for LibSqlConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request