pub struct ConnectionConfig {Show 19 fields
pub id: String,
pub name: String,
pub database_type: DatabaseType,
pub host: Option<String>,
pub port: Option<u16>,
pub database: Option<String>,
pub schema: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub ssl_mode: SslMode,
pub connection_timeout: u32,
pub max_pool_size: u32,
pub ssh_tunnel: Option<SshTunnelConfig>,
pub color_tag: Option<String>,
pub group: Option<String>,
pub last_connected_at: Option<String>,
pub server_version: Option<String>,
pub options: Option<Map<String, Value>>,
pub read_only: bool,
}Fields§
§id: String§name: String§database_type: DatabaseType§host: Option<String>§port: Option<u16>§database: Option<String>§schema: Option<String>§username: Option<String>§password: Option<String>§ssl_mode: SslMode§connection_timeout: u32§max_pool_size: u32Max connections in the driver’s sqlx pool (host injects from AppSettings on connect).
ssh_tunnel: Option<SshTunnelConfig>§color_tag: Option<String>§group: Option<String>§last_connected_at: Option<String>§server_version: Option<String>§options: Option<Map<String, Value>>Opaque per-driver connection options (e.g. Redis topology/TLS).
read_only: boolWhen true, mutating SQL and row edits are rejected by the host.
Implementations§
Source§impl ConnectionConfig
impl ConnectionConfig
Sourcepub fn effective_max_pool_size(&self) -> u32
pub fn effective_max_pool_size(&self) -> u32
Pool size for sqlx drivers: at least 1, capped at 100.
Trait Implementations§
Source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
Source§impl Debug for ConnectionConfig
impl Debug for ConnectionConfig
Source§impl<'de> Deserialize<'de> for ConnectionConfig
impl<'de> Deserialize<'de> for ConnectionConfig
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 ConnectionConfig
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnsafeUnpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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