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

chore: Use generic db url for postgresql container #1493

Merged
merged 2 commits into from
Aug 11, 2023
Merged

chore: Use generic db url for postgresql container #1493

merged 2 commits into from
Aug 11, 2023

Conversation

kevinrobayna
Copy link
Contributor

What does this PR do?

Use generic db url format with PG containers instead of PG specific one.

Why is it important?

Before we where using the PG specific url format but most tools would expect the url on the generic one (i.e https://github.com/golang-migrate/migrate).

People could indeed write their own connString mapper but that would be unnecessary. (Ideally tools would not try to parse the url and instead just use the string but sometimes they might need to, thus using the generic format would work most of the times)

Before we where using the PG specific url format but most tools would
expect the url on the generic one (i.e https://github.com/golang-migrate/migrate).

People could indeed write their own connString mapper but that would be
unnecessary. (Ideally tools would not try to parse the url and instead
just use the string but sometimes they might need to, thus using the
generic format would work most of the times)
@kevinrobayna kevinrobayna requested a review from a team as a code owner August 10, 2023 14:24
@netlify
Copy link

netlify bot commented Aug 10, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit c9d28d1
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64d4f62d3c692f0008629e9d
😎 Deploy Preview https://deploy-preview-1493--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya self-assigned this Aug 11, 2023
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Aug 11, 2023
@mdelapenya mdelapenya merged commit c4236fb into testcontainers:main Aug 11, 2023
112 checks passed
@kevinrobayna kevinrobayna deleted the use_generic_db_url_for_pg branch August 11, 2023 21:28
kevinrobayna added a commit to Rotabot-io/rotabot that referenced this pull request Aug 16, 2023
Since We did this change on testcontainer
testcontainers/testcontainers-go#1493 we now can
delete the internal helper. Less code to maintain == GOOD
kevinrobayna added a commit to Rotabot-io/rotabot that referenced this pull request Aug 16, 2023
Since We did this change on testcontainer
testcontainers/testcontainers-go#1493 we now can
delete the internal helper. Less code to maintain == GOOD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants