Skip to main content

build_mysql_opts

Function build_mysql_opts 

Source
async fn build_mysql_opts(connection: &str) -> Result<Opts>
Expand description

Parses the connection DSN and, for TCP connections, resolves the host to candidate IP addresses. When an explicit Unix socket is configured (?socket=/path), mysql_async dials the socket path directly, so the host is a placeholder and DNS resolution is skipped entirely.