pub struct SqlKvConfig {
pub kind: String,
pub url_env: Option<String>,
pub path: Option<String>,
pub pool_max: Option<u32>,
}Expand description
[serve.kv.sql] — the SQL control-plane KV backend connection (--kv sql). The connection
URL is NEVER written in the config (UX-C2): a bring-your-own / remote engine names the env var
holding it via url_env (mirroring ExternalDatabaseConfig), while an embedded
single-node SQLite database names an on-disk file via path. Every field is also
settable by BOATRAMP_KV_SQL_* env (resolved at serve wiring). This workstream (build-order
step 1) wires sqlite (libsql-local) only; postgres/mysql are later workstreams.
Fields§
§kind: StringEngine: sqlite (aliases sqlite3/libsql) — the embedded single-node file; postgres
(aliases postgresql/pg) or mysql (alias mariadb) — the multi-writer engines (later
workstreams), the same alias set as the databases: block. Empty ⇒ sqlite.
url_env: Option<String>Name of the env var holding the connection URL (e.g. postgres://…, or a remote sqld URL) —
NEVER a raw URL in the config. Unused for an embedded single-node sqlite database (which
uses path).
path: Option<String>On-disk file path for an embedded single-node sqlite KV (e.g. /data/kv.db). The parent
directory is created if absent. Ignored for postgres/mysql and for a remote-sqld URL.
pool_max: Option<u32>Maximum pooled connections for a postgres/mysql KV (later workstreams). Ignored for the
embedded sqlite path (one Database handle, connections opened per op).
Trait Implementations§
Source§impl Clone for SqlKvConfig
impl Clone for SqlKvConfig
Source§impl Debug for SqlKvConfig
impl Debug for SqlKvConfig
Source§impl Default for SqlKvConfig
impl Default for SqlKvConfig
Source§impl<'de> Deserialize<'de> for SqlKvConfigwhere
SqlKvConfig: Default,
impl<'de> Deserialize<'de> for SqlKvConfigwhere
SqlKvConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for SqlKvConfig
impl RefUnwindSafe for SqlKvConfig
impl Send for SqlKvConfig
impl Sync for SqlKvConfig
impl Unpin for SqlKvConfig
impl UnsafeUnpin for SqlKvConfig
impl UnwindSafe for SqlKvConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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