Uses of Class
de.softwareforge.testing.postgres.embedded.EmbeddedPostgres.Builder
-
Uses of EmbeddedPostgres.Builder in de.softwareforge.testing.postgres.embedded
Modifier and TypeFieldDescriptionprotected com.google.common.collect.ImmutableSet.Builder<EmbeddedPostgresPreparer<EmbeddedPostgres.Builder>>
DatabaseManager.Builder.instancePreparers
Modifier and TypeMethodDescriptionEmbeddedPostgres.Builder.addConnectionProperty
(String key, String value) Adds a connection property.EmbeddedPostgres.Builder.addInitDbConfiguration
(String key, String value) Adds a configuration parameters for theinitdb
command.EmbeddedPostgres.Builder.addLocaleConfiguration
(String key, String value) Deprecated.EmbeddedPostgres.Builder.addServerConfiguration
(String key, String value) Adds a server configuration parameter.static EmbeddedPostgres.Builder
EmbeddedPostgres.builder()
Returns a newEmbeddedPostgres.Builder
.static EmbeddedPostgres.Builder
EmbeddedPostgres.builderWithDefaults()
Returns a builder with defaultwithDefaults()
configuration already applied.EmbeddedPostgres.Builder.setDataDirectory
(File dataDirectory) Explicitly set the location of the data directory.EmbeddedPostgres.Builder.setDataDirectory
(String dataDirectory) Explicitly set the location of the data directory.EmbeddedPostgres.Builder.setDataDirectory
(Path dataDirectory) Explicitly set the location of the data directory.EmbeddedPostgres.Builder.setErrorRedirector
(ProcessBuilder.Redirect errorRedirector) Set aProcessBuilder.Redirect
instance to receive stderr output from the spawned processes.EmbeddedPostgres.Builder.setInstallationBaseDirectory
(File installationBaseDirectory) Sets the directory where the PostgreSQL distribution is unpacked.EmbeddedPostgres.Builder.setNativeBinaryManager
(NativeBinaryManager nativeBinaryManager) Sets theNativeBinaryManager
that provides the location of the postgres installation.EmbeddedPostgres.Builder.setOutputRedirector
(ProcessBuilder.Redirect outputRedirector) Set aProcessBuilder.Redirect
instance to receive stdout output from the spawned processes.EmbeddedPostgres.Builder.setPort
(int port) Explicitly set the TCP port for the PostgreSQL server.EmbeddedPostgres.Builder.setRemoveDataOnShutdown
(boolean removeDataOnShutdown) Whether to remove the data directory on server shutdown.EmbeddedPostgres.Builder.setServerStartupWait
(Duration serverStartupWait) Sets the time that the builder will wait for the PostgreSQL server instance to start.EmbeddedPostgres.Builder.setServerVersion
(String serverVersion) Set the version of the PostgreSQL server.EmbeddedPostgres.Builder.useLocalPostgresInstallation
(File directory) Use a locally installed PostgreSQL server for tests.EmbeddedPostgres.Builder.withDefaults()
Apply a set of defaults to the database server: timezone: UTC synchronous_commit: off max_connections: 300Modifier and TypeMethodDescriptionvoid
EmbeddedPostgres.BuilderCustomizer.customize
(EmbeddedPostgres.Builder builder) Deprecated.Callback to customize a givenEmbeddedPostgres.Builder
.Modifier and TypeMethodDescriptionDatabaseManager.Builder.withInstancePreparer
(EmbeddedPostgresPreparer<EmbeddedPostgres.Builder> instancePreparer) Add a preparer for theEmbeddedPostgres.Builder
object.DatabaseManager.Builder.withInstancePreparers
(Set<EmbeddedPostgresPreparer<EmbeddedPostgres.Builder>> instancePreparers) Add preparers for theEmbeddedPostgres.Builder
object.
addInitDbConfiguration(String, String)
.