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

feat: add possibility to pass application_name via postgres specific config #7989

Merged

Conversation

das-mensch
Copy link
Contributor

Description of change

As the "extra" parameter should be deprecated in the future, the need for
passing driver specific options via the respective config objects is given.
The addition of the "applicationName" parameter is a step forward in this
direction. This parameter is visible in logs and statistics and helps db
administrators to see which connection belongs to which application.
This change also enables the user to use code completion in case they
didn't even knew this options exists

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000 N/A
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

src/driver/postgres/PostgresDriver.ts Outdated Show resolved Hide resolved
@das-mensch das-mensch force-pushed the feature/postgres-application-name branch 2 times, most recently from 514551e to 779ee59 Compare July 30, 2021 14:07
…config

as the "extra" parameter should be deprecated in the future, the need for
passing driver specific options via the respective config objects is given.
This change also enables the user to use code completion in case they
didn't even knew this options exists
add useful information about the parameter and show its default value
@das-mensch das-mensch force-pushed the feature/postgres-application-name branch from 779ee59 to 12766c6 Compare July 30, 2021 19:37
@imnotjames imnotjames merged commit d365acc into typeorm:master Jul 30, 2021
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