Skip to content

return error in Config.FormatDSN #1046

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

Closed
wants to merge 1 commit into from
Closed

Conversation

julienschmidt
Copy link
Member

Description

Not all configs may be representable by a DSN string in the future, e.g. #771

Updates #771.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

Not all configs may be representable by a DSN string in the future, e.g. #771

Updates #771.
@julienschmidt julienschmidt added this to the v1.5.0 milestone Jan 3, 2020
@julienschmidt julienschmidt mentioned this pull request Jan 3, 2020
5 tasks
@methane
Copy link
Member

methane commented Jan 4, 2020

This is breaking change and we need to use "v2".

Not all configs may be representable by a DSN string in the future,

Isn't it same to current situation? We use registry and put only the name to the DSN.
The DSN is not portable and doesn't represent "all config" anymore.

We can not represent all config only in string DSN already.

@julienschmidt
Copy link
Member Author

Ah indeed, Config.FormatDSN was already present in v1.4. I made this PR under the impression that we added it during the 1.5 dev phase.
This PR doesn't make sense then.

@julienschmidt julienschmidt deleted the formatdsn_err branch January 7, 2020 17:03
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.

2 participants