public class PostgresResourceManager extends AbstractJDBCResourceManager<PostgreSQLContainer<?>>
AbstractJDBCResourceManager
abstract
class.
The class supports one database, and multiple tables per database object. A database is * created when the container first spins up, if one is not given.
The class is thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
PostgresResourceManager.Builder
Builder for
PostgresResourceManager . |
JDBCResourceManager.JDBCSchema
databaseName, DEFAULT_JDBC_USERNAME, driver, password, username
HOST_IP, port
Modifier and Type | Method and Description |
---|---|
static PostgresResourceManager.Builder |
builder(java.lang.String testId) |
java.lang.String |
getDockerImageName() |
protected int |
getJDBCPort()
Return the default port that this JDBC implementation listens on.
|
java.lang.String |
getJDBCPrefix() |
createTable, getDatabaseName, getFirstRow, getPassword, getPort, getRowCount, getTableSchema, getUri, getUsername, readTable, runSQLQuery, runSQLUpdate, write
cleanupAll, getHost, getPort
public static PostgresResourceManager.Builder builder(java.lang.String testId)
protected int getJDBCPort()
AbstractJDBCResourceManager
getJDBCPort
in class AbstractJDBCResourceManager<PostgreSQLContainer<?>>
public java.lang.String getJDBCPrefix()
getJDBCPrefix
in class AbstractJDBCResourceManager<PostgreSQLContainer<?>>
public java.lang.String getDockerImageName()
getDockerImageName
in class TestContainerResourceManager<JdbcDatabaseContainer<?>>