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

scalikejdbc.mapper.LineBreak.scala Maven / Gradle / Ivy

The newest version!
package scalikejdbc.mapper

object LineBreak {
  def value(name: String): String = name match {
    case "CR"   => "\r"
    case "LF"   => "\n"
    case "CRLF" => "\r\n"
    case _      => "\n"
  }
}

case class LineBreak(name: String) {
  def value: String = LineBreak.value(name)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy