public class EmbeddedPostgreSQL extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedPostgreSQL.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EmbeddedPostgreSQL.Builder |
builder() |
void |
close() |
DataSource |
getDatabase(String userName,
String dbName) |
String |
getJdbcUrl(String userName,
String dbName) |
int |
getPort() |
DataSource |
getPostgresDatabase() |
DataSource |
getTemplateDatabase() |
static EmbeddedPostgreSQL |
start() |
String |
toString() |
public DataSource getTemplateDatabase()
public DataSource getPostgresDatabase()
public DataSource getDatabase(String userName, String dbName)
public int getPort()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static EmbeddedPostgreSQL start() throws IOException
IOExceptionpublic static EmbeddedPostgreSQL.Builder builder()
Copyright © 2015. All rights reserved.