Closed nbari closed 5 years ago
Hi.
There is no way to specify socket path via DSN. Please use OptsBuilder::prefer_socket
and OptsBuilder::socket
.
Maybe this could be a nice enhancement what about:
let opts = mysql::Opts::from_dsn("...")
or
let opts = mysql::Opts::DSN("...")
or any idea of a library that could parse a DSN?, my goal is to simplify the input from the users, something like https://github.com/go-sql-driver/mysql#dsn-data-source-name
Thanks. I'll look into it.
I am trying to use a DSN like this:
or
But get this error:
I am using
from_url
like this:It is possible to pass the path of the Unix socket when using
from_url
if yes could you please share an example?