
ru.yandex.qatools.embed.postgresql.PsqlExecutable Maven / Gradle / Ivy
The newest version!
package ru.yandex.qatools.embed.postgresql;
import de.flapdoodle.embed.process.config.IRuntimeConfig;
import de.flapdoodle.embed.process.distribution.Distribution;
import de.flapdoodle.embed.process.extract.IExtractedFileSet;
import ru.yandex.qatools.embed.postgresql.config.PostgresConfig;
import java.io.IOException;
/**
* psql executor
* (helper to initialize the DB)
*/
public class PsqlExecutable extends AbstractPGExecutable {
public PsqlExecutable(Distribution distribution,
PostgresConfig config, IRuntimeConfig runtimeConfig, IExtractedFileSet redisdExecutable) {
super(distribution, config, runtimeConfig, redisdExecutable);
}
@Override
protected PsqlProcess start(Distribution distribution, PostgresConfig config, IRuntimeConfig runtime)
throws IOException {
return new PsqlProcess<>(distribution, config, runtime, this);
}
@Override
public synchronized void stop() {
// We don't want to cleanup after this particular single invocation
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy