-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
support pg-promise init options #3613
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
Conversation
@rendongsc can you fix the lint issue and add tests to make sure we don't incur any regression? |
As the author of pg-promise, I must say this looks wrong to me... client.pg.defaults[key] = dbOptions.pgOptions[key]; Variable pgp.pg.defaults[key] = dbOptions.pgOptions[key]; So I presume this simply has never been tested, or else it would throw an error. |
@vitaly-t what do you recommend. Could you have a look if there's anything wrong there? |
I have, and I published right there what it should be ;) pgp.pg.defaults[key] = dbOptions.pgOptions[key]; |
@vitaly-t got time for a PR? Who better than you? Should I close that one? Also, I believe with the amount of contributions you have, you should probably be granted commit access. Are you interested? |
I'm not sure what this PR is really doing, but there issue that I described was there before. There's only that one change is needed ;) I do not have rights to update the PR, you can do it ;) |
Just open a new one in that case, closing :) |
Not wrong, but does not work.
|
@rendongsc updated the pull request - view changes |
Could you add a test for that? |
@flovilmart I test the way through the output log, and spec test specifications vary greatly, give me some time. |
Perhaps a mock and expectations of call for example |
@rendongsc did you get a chance to add some tests? |
@flovilmart I can do that. |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc thanks for adding the tests, it seems that the linter is complaining about your spec files |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc updated the pull request - view changes |
@rendongsc Thanks for the PR! |
add database init options , hook pg connect.