danvergara / dblab

The database client every command line junkie deserves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement a better validation for mysql url connection

danvergara opened this issue · comments

Is your feature request related to a problem? Please describe.
Currenty, I haven't implemented a reliable way to validate mysql urls, due to their peculiarities (e. x. user:password@tcp(localhost:5555)/dbname?tls=skip-verify&autocommit=true). I tried to use url package, but it is not able to parse those kind of urls.

Describe the solution you'd like
From my point of view, we should implement our regex solution to parse and validate those kind of urls.

Describe alternatives you've considered
I considered the use of dburl, but that package doesn't support mysql urls connection strings either.
Maybe we could take advantage of regexp from the standard library.