All Downloads are FREE. Search and download functionalities are using the official Maven repository.

codacy.test.docker.DB.scala Maven / Gradle / Ivy

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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy