pub enum DatabaseProfile {
Postgres {
host: String,
port: Option<u16>,
database: String,
user: String,
ssl_mode: Option<PostgresSslMode>,
password: Option<SecretRef>,
},
Mysql {
host: String,
port: Option<u16>,
database: String,
user: String,
ssl_mode: Option<MySqlSslMode>,
ssl_ca: Option<SecretRef>,
password: Option<SecretRef>,
},
DuckDb {
path: String,
read_only: Option<bool>,
},
Snowflake {
account: String,
user: String,
auth_type: SnowflakeAuth,
private_key: Option<SecretRef>,
password: Option<SecretRef>,
passphrase: Option<SecretRef>,
warehouse: Option<String>,
database: Option<String>,
schema: Option<String>,
role: Option<String>,
},
}Expand description
Typed database connection profile loaded from connections.toml.
Variants§
Postgres
Fields
§
ssl_mode: Option<PostgresSslMode>Mysql
Fields
§
ssl_mode: Option<MySqlSslMode>DuckDb
Snowflake
Implementations§
Source§impl DatabaseProfile
impl DatabaseProfile
pub const fn dialect(&self) -> SqlDialect
Trait Implementations§
Source§impl Clone for DatabaseProfile
impl Clone for DatabaseProfile
Source§fn clone(&self) -> DatabaseProfile
fn clone(&self) -> DatabaseProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseProfile
impl Debug for DatabaseProfile
Source§impl<'de> Deserialize<'de> for DatabaseProfile
impl<'de> Deserialize<'de> for DatabaseProfile
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 DatabaseProfile
Source§impl PartialEq for DatabaseProfile
impl PartialEq for DatabaseProfile
Source§impl Serialize for DatabaseProfile
impl Serialize for DatabaseProfile
impl StructuralPartialEq for DatabaseProfile
Auto Trait Implementations§
impl Freeze for DatabaseProfile
impl RefUnwindSafe for DatabaseProfile
impl Send for DatabaseProfile
impl Sync for DatabaseProfile
impl Unpin for DatabaseProfile
impl UnsafeUnpin for DatabaseProfile
impl UnwindSafe for DatabaseProfile
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