Class EmbeddedPostgres.Builder
java.lang.Object
de.softwareforge.testing.postgres.embedded.EmbeddedPostgres.Builder
- Enclosing class:
- EmbeddedPostgres
-
Method Summary
Modifier and TypeMethodDescriptionaddConnectionProperty
(String key, String value) addLocaleConfiguration
(String key, String value) addServerConfiguration
(String key, String value) build()
setDataDirectory
(File dataDirectory) setDataDirectory
(String dataDirectory) setDataDirectory
(Path dataDirectory) setErrorRedirector
(ProcessBuilder.Redirect errRedirector) setInstallationDirectory
(File installationDirectory) setOutputRedirector
(ProcessBuilder.Redirect outRedirector) setPort
(int port) setPostgresBinaryDirectory
(File directory) setPostgresDirectoryResolver
(PgDirectoryResolver directoryResolver) setRemoveDataOnShutdown
(boolean removeDataOnShutdown) setServerStartupWait
(Duration serverStartupWait) Apply a set of defaults to the database server: timezone: UTC synchronous_commit: off max_connections: 300
-
Method Details
-
withDefaults
Apply a set of defaults to the database server:- timezone: UTC
- synchronous_commit: off
- max_connections: 300
- Returns:
- The builder itself.
-
setServerStartupWait
-
setRemoveDataOnShutdown
-
setDataDirectory
-
setDataDirectory
-
setDataDirectory
-
addServerConfiguration
-
addLocaleConfiguration
-
addConnectionProperty
-
setInstallationDirectory
-
setPort
-
setErrorRedirector
-
setOutputRedirector
-
setPostgresDirectoryResolver
-
setPostgresBinaryDirectory
-
build
- Throws:
IOException
-