-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Considering v1.7.1 #1410
Comments
Good morning @methane. Thanks for looking at this. If you go ahead, and related to discussions perhaps the documentation should favour the use of https://pkg.go.dev/github.com/go-sql-driver/mysql#Config rather than direct configuration of the DSN directly? You wrote:
I realise this is a time-consuming process and may require multiple changes but at least add a comment immediately after the Usage section in https://github.com/go-sql-driver/mysql, indicating this preference. As things stand it's quite easy to overlook this and for the simplest DSN configuration it seems better/simpler to just create a DSN manually which you indicate you would like to avoid. So a simple change there in bold saying "We recommend usage of use the mysql.Config struct and usage of Config.FormatDSN() to generate the DSN as this both simplifies DSN generation and ensures the created value is correct even in more complex cases" or similar would be more visible and lead people in that direction. As a single paragraph in the right location it should do most of what you need. |
For simple configuration, using DSN and writing DSN manually is OK. And I don't recommend to use |
oh, apologies. I misunderstood the way you wanted to suggest this to be done, but thought I understood the suggested usage was to use the |
@methane It sounds good. |
@methane wrote:
Unfortunately the documentation for
The documentation of |
Advise to use NewConnector instead of FormatDSN because roundtripping is known to not work well. See go-sql-driver#1410 (comment)
Advise to use NewConnector instead of FormatDSN because roundtripping is known to not work well. See #1410 (comment)
After v1.7.0 was released, #1402 was merged.
Before start merging large/backward incompatible features, how about releasing v1.7.1?
If go, I want to fix #1355 in v1.7.1 too.
@shogo82148 How do you think?
The text was updated successfully, but these errors were encountered: