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

enable ConnectionString usage in pg client #140

Merged
merged 3 commits into from
Sep 27, 2021

Conversation

twhitbeck
Copy link
Contributor

@twhitbeck twhitbeck commented Sep 27, 2021

Is this a breaking change?

  • Yes
  • No

Checklist:

Please review the
guidelines for contributing
to this repository.

  • Updated JSDoc (for methods changed/added)
  • Added tests to cover added functionalities.
  • Updated readme (if applicable).
  • Added/updated examples in example folder.
  • Make sure the pipeline passes.

When all of the above is completed, request a review from one of the codeowners.

Description:

Support all constructor parameter patterns of deno-postgres client.

@twhitbeck
Copy link
Contributor Author

@halvardssm looks like the checks are passing. would you mind reviewing this? Thanks!

(some context: I'm using fly.io postgres instances which supply only a connection string, so I need to be able to instantiate my postgres client instance with just a connection string)

@halvardssm
Copy link
Owner

Hi @twhitbeck ! Thanks for your PR! I have no problem with merging this change, but could you add the same type for the MySQL and SQLite clients as well?

@twhitbeck
Copy link
Contributor Author

Hi @twhitbeck ! Thanks for your PR! I have no problem with merging this change, but could you add the same type for the MySQL and SQLite clients as well?

Looks like the MySQL client is fine as is. I applied the same approach to the SQLite client, though.

Copy link
Owner

@halvardssm halvardssm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks!

@halvardssm halvardssm merged commit b042a3d into halvardssm:main Sep 27, 2021
@twhitbeck twhitbeck deleted the pg-constructor branch September 27, 2021 19:19
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