Class PostgreSQL
java.lang.Object
io.github.suppierk.codegen.docker.AbstractDatabaseContainer
io.github.suppierk.codegen.docker.PostgreSQL
- All Implemented Interfaces:
AutoCloseable
Testcontainers-backed PostgreSQL database used when schemas declare the PostgreSQL JDBC driver.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPostgreSQL(String dockerImageName) Creates a PostgreSQL Testcontainer using supplied Docker image. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleansupportsDriverClassName(String driverClassName) RECOMMENDED TO BE CREATED ACROSS ALL OTHERAbstractDatabaseContainerIMPLEMENTATIONSMethods inherited from class io.github.suppierk.codegen.docker.AbstractDatabaseContainer
close, getDatabaseContainer, getDriverClassName, getJdbcUrl, getPassword, getUsername
-
Constructor Details
-
PostgreSQL
Creates a PostgreSQL Testcontainer using supplied Docker image.- Parameters:
dockerImageName- Docker tag to launch
-
-
Method Details
-
supportsDriverClassName
RECOMMENDED TO BE CREATED ACROSS ALL OTHERAbstractDatabaseContainerIMPLEMENTATIONS- Parameters:
driverClassName- used in Flyway / jOOQ Gradle configurations- Returns:
trueif current implementation supports given driver,falseotherwise
-