Skip to content
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

Merged
merged 1 commit into from
Aug 16, 2020
Merged

docs(spanner): clarify how to set parameters #428

merged 1 commit into from
Aug 16, 2020

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Aug 15, 2020

  • 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)

@coveralls
Copy link

coveralls commented Aug 15, 2020

Pull Request Test Coverage Report for Build 830

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 53.29%

Totals Coverage Status
Change from base Build 822: 0.0%
Covered Lines: 2640
Relevant Lines: 4954

💛 - Coveralls

database/spanner/README.md Outdated Show resolved Hide resolved

| Param | WithInstance Config | Description |
| Option | WithInstance Config | Description |
Copy link
Member

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

Copy link
Contributor Author

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=?

Copy link
Contributor Author

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?

Copy link
Member

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!

@wyardley wyardley changed the title docs(spanner): clarify how to set options docs(spanner): clarify how to set parameters Aug 16, 2020
- 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
@dhui dhui merged commit ce34d50 into golang-migrate:master Aug 16, 2020
@wyardley wyardley deleted the wyardley-docs branch August 16, 2020 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants