Closed
Description
I need to open a TLS connection with a MySQL database using a client certificate. Unfortunately there doesn't seem to be a clean way to specify this. The only thing we can think of is specifying a filename in the custom "dataSourceName" string format. But this gets rather complicated when you want to customize things like the RootCA. If you want to provide an embedded certificate, you really can't. We really need something like this: OpenMore(driverName string, settings map[string]interface{}) (*DB, error) So you could do something like this: OpenMore("mysql", Settings{..., "tls": &tls.Config{...}}