pub enum ConnKind {
Sqlite {
path: String,
},
Duckdb {
path: String,
},
Postgres {
uri: String,
password_env: String,
},
}Expand description
The backend + its non-secret locator. Secrets live in the environment.
Variants§
Sqlite
SQLite: a filesystem path (or :memory:). No secret.
Duckdb
DuckDB: a filesystem path (or :memory:). Embedded, no secret.
Postgres
Postgres: a DSN/URI without a password, plus the env var that holds the password. The secret is resolved at connect time, never stored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConnKind
impl<'de> Deserialize<'de> for ConnKind
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
impl StructuralPartialEq for ConnKind
Auto Trait Implementations§
impl Freeze for ConnKind
impl RefUnwindSafe for ConnKind
impl Send for ConnKind
impl Sync for ConnKind
impl Unpin for ConnKind
impl UnsafeUnpin for ConnKind
impl UnwindSafe for ConnKind
Blanket Implementations§
impl<T> Allocation for T
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