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: extra database connection properties - take 2 #35

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

djcass44
Copy link
Contributor

This is exactly the same as #34 except it fixes the build issues.

To prove that it works, here's a screenshot of my IDE terminal:
image

There are a few extra file changes in here (e.g., eslint, package-lock), those were made by progen when I ran npm run build so I figured they were supposed to be there. If not, let me know and I'll remove them.

@djcass44 djcass44 changed the title feat: extra database connection properties - take 2 feat: extra database connection properties - take 2 Sep 12, 2024
@berenddeboer
Copy link
Owner

LOL, any! Hmm, I think we can do better. No way we can pull in only the valid connection properties? This is typescript after all, want want types.

*
* @default - empty object
*/
readonly connectionProps?: any
Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, not keen on this.

@djcass44
Copy link
Contributor Author

@berenddeboer I can't for the life of me get it to build with types. It just complains that the module is not declared, despite me clearly declaring it in the .progenrc.ts:

image

@types/pg is also added into the package.json under dependencies and bundledDependencies so I have no idea what it's complaining about.

I've tried every possible combination of deps and bundledDeps but can't get it to build...
Any ideas?

@berenddeboer
Copy link
Owner

I think we're making this way too difficult. You simply wanted ssl right?

berenddeboer added a commit that referenced this pull request Sep 21, 2024
Set the ssl option on the provider to false to revert to the previous
behaviour. This addresses #34 and #35.

BREAKING CHANGE: ssl connections are now enabled by default.
@berenddeboer
Copy link
Owner

berenddeboer commented Sep 21, 2024

@djcass44 Please check my new PR. Could you give this a spin please?

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