Skip to main content

build_opts

Function build_opts 

Source
pub fn build_opts(conn: &str) -> Result<OptsBuilder, MySQLSourceError>
Expand description

Build the connection options for a MySQL URL, translating the ssl-mode (and ssl-ca) query parameters into a [SslOpts].

The mysql crate configures TLS programmatically via [OptsBuilder::ssl_opts] and errors on unknown URL parameters, so the SSL parameters are parsed and removed here rather than passed through to [Opts::from_url].