pub enum DbSystem {
Postgres,
MySql,
MariaDb,
Sqlite,
MongoDb,
}Expand description
Supported database systems — relational and NoSQL.
This is config-layer metadata only; it tells downstream crates which driver
to use and how to shape a connection string. Adding a system here does not by
itself wire a pool — that lives in klauthed-data.
Variants§
Postgres
PostgreSQL (the default).
MySql
MySQL.
MariaDb
MariaDB.
Sqlite
SQLite (file-based; no host/port).
MongoDb
NoSQL document store.
Implementations§
Source§impl DbSystem
impl DbSystem
Sourcepub fn default_port(&self) -> Option<u16>
pub fn default_port(&self) -> Option<u16>
The conventional default port, or None for file-based engines (SQLite).
Sourcepub fn is_relational(&self) -> bool
pub fn is_relational(&self) -> bool
Whether this system is relational (vs. a document/NoSQL store).
Trait Implementations§
impl Copy for DbSystem
Source§impl<'de> Deserialize<'de> for DbSystem
impl<'de> Deserialize<'de> for DbSystem
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 Eq for DbSystem
impl StructuralPartialEq for DbSystem
Auto Trait Implementations§
impl Freeze for DbSystem
impl RefUnwindSafe for DbSystem
impl Send for DbSystem
impl Sync for DbSystem
impl Unpin for DbSystem
impl UnsafeUnpin for DbSystem
impl UnwindSafe for DbSystem
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