Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Add postgresql support #372

Merged
merged 2 commits into from
Sep 12, 2019
Merged

Add postgresql support #372

merged 2 commits into from
Sep 12, 2019

Conversation

awisniew90
Copy link
Member

No description provided.

@@ -84,23 +116,28 @@ public Properties getDatasourceProperties() {
}
}

// TODO: Are defaults adding any value here? Should we just eliminate them?
Copy link
Member

Choose a reason for hiding this comment

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

I don't think these add much value, and they will need to be customized in pretty much every scenario anyways (even local testing ones). Also, it would be signing Boost up for maintaining a list of defaults for all the different databases which I don't think you guys will want to be on the hook for.
I vote we eliminate this part

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm... I think I agree. Even if they were a bit more often likely to be used (maybe in Docker scenarios) I'm hesitant to extend Boost in this direction. Plus it's not even a straightforward default.. there's non-trivial logic around when to use it (if none of the other props are set).... let's hold off on this for now. I wonder if we need to tweak any existing ITs then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree. I think we should only default values for the Derby embedded case. Being able to configure the database name for derby was more of an add on any way. We should allow this to work without any user input.

For non-Derby drivers, if no properties are provided, we can throw a warning and create empty variables for url / user / password that can be set at runtime. (I think those are the only required ones)

Copy link
Contributor

@scottkurz scottkurz left a comment

Choose a reason for hiding this comment

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

Good but agree let's remove the defaults first.

@awisniew90
Copy link
Member Author

Created #377 to have the test-jdbc IT use MicroShed Testing to start containerized databases rather than using the docker-maven-plugin. As a part of this, we should add a PostgreSQL test.

@scottkurz scottkurz merged commit e759731 into MicroShed:master Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants