-
Notifications
You must be signed in to change notification settings - Fork 1.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
docs(spanner): clarify how to set parameters #428
Conversation
database/spanner/README.md
Outdated
|
||
| Param | WithInstance Config | Description | | ||
| Option | WithInstance Config | Description | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave this as Param
since these are URL query params: https://golang.org/pkg/net/url/#Values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - can do -what was confusing to me about that is that
https://github.com/golang-migrate/migrate/#database-urls uses option=
. Would it make sense to change that to param=?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See if it makes more sense this way. I assumed that the example in the main readme would be the one to follow, but this makes sense, I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, good catch. Let's be consistent and also change the docs in the repo root's README to use params instead of options. Thanks!
- include param in DSN example - link to README docs on param (option) format - switch to 'parameter' instead of 'option', in the main README, since this is preferred
While this is documented, I think this will make it more clear what the options are called and how to set them (context: #425)