Skip to content

feat: add setConnectionOptions & uses open connections #58

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

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

hirsch88
Copy link
Member

No description provided.

@hirsch88 hirsch88 added the enhancement New feature or request label Apr 17, 2020
@hirsch88 hirsch88 self-assigned this Apr 17, 2020
@hirsch88 hirsch88 linked an issue Apr 17, 2020 that may be closed by this pull request
@hirsch88 hirsch88 merged commit cce10e6 into master Apr 17, 2020
@hirsch88
Copy link
Member Author

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -42,8 +44,13 @@ export const configureConnection = (option: ConfigureOption = {}) => {
}
}

export const setConnectionOptions = (options: TypeORMConnectionOptions): void => {

Choose a reason for hiding this comment

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

Everything working well in my project from this PR locally, thanks again. One thing is I think this should probably be like setConnectionOptions = (options: Partial<TypeORMConnectionOptions>) so you can do something like setConnectionOptions({ logging: true }) without needing setConnectionOptions({ logging: true } as any)

Copy link
Member Author

Choose a reason for hiding this comment

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

thx for the tip
add it to #59

@hirsch88 hirsch88 deleted the feat/testing-connection branch April 18, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass open connection?
2 participants