Skip to content

feat(core and module/postgresql): add getR2dbcUrl() method for R2DBC support to PostgreSQLContainerProvider and JdbcDatabaseContainer#11131

Open
jan-knoblich wants to merge 5 commits into
testcontainers:mainfrom
jan-knoblich:main
Open

feat(core and module/postgresql): add getR2dbcUrl() method for R2DBC support to PostgreSQLContainerProvider and JdbcDatabaseContainer#11131
jan-knoblich wants to merge 5 commits into
testcontainers:mainfrom
jan-knoblich:main

Conversation

@jan-knoblich
Copy link
Copy Markdown

@jan-knoblich jan-knoblich commented Oct 19, 2025

This PR adds a new method getR2dbcUrl() to JdbcDatabaseContainer and its PostgreSQL implementation. It allows developers to easily obtain an R2DBC-compliant connection URL, improving compatibility with R2DBC-based applications.
Changes

  • Added getR2dbcUrl() to JdbcDatabaseContainer.
  • Overridden the method in PostgreSQLContainerProvider.
  • Added getR2dbcDriverName() for PostgreSQL.
  • Wrote a test in PostgreSQLR2DBCDatabaseContainerTest to verify the R2DBC URL.

I believe this should fix ##8797

Is that what you had in mind @eddumelendez with this comment ?

@jounnie
Copy link
Copy Markdown

jounnie commented May 18, 2026

some help needed here to finalize? want to start contributing. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants