File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
modules/r2dbc/src/main/java/org/testcontainers/r2dbc Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 55
66public interface R2DBCDatabaseContainer extends Startable {
77 ConnectionFactoryOptions configure (ConnectionFactoryOptions options );
8+
9+ /**
10+ * Returns the R2DBC URL for connecting to the database.
11+ * <p>
12+ * The default implementation throws {@link UnsupportedOperationException}.
13+ * Implementations should override this method to provide the actual R2DBC URL.
14+ *
15+ * @return the R2DBC URL in the format: r2dbc:driver://username:password@host:port/database
16+ * @throws UnsupportedOperationException if the implementation does not support R2DBC URLs
17+ */
18+ default String getR2dbcUrl () {
19+ throw new UnsupportedOperationException ("R2DBC URL is not supported by this container" );
20+ }
821}
You can’t perform that action at this time.
0 commit comments