codacy.test.docker.DB.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codacy-test-bench_2.13 Show documentation
Show all versions of codacy-test-bench_2.13 Show documentation
A library to send events on rabbit-mq
The newest version!
package codacy.test.docker
final case class DB(name: String, env: String, configName: String, create: Boolean) {
def envVar(ip: String, port: Int) =
s"""${env}=jdbc:postgresql://${ip}:${port}/${name}?tcpKeepAlive=true"""
def statement =
if (create) Some(s"create database $name")
else None
}