/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/catalystsquad/catalyst-squad-hello-world-example-api/1.0.1/anorm_2_8_parsers */ import anorm._ package com.catalystsquad.catalyst.squad.hello.world.example.api.v1.anorm.parsers { import com.catalystsquad.catalyst.squad.hello.world.example.api.v1.anorm.conversions.Standard._ import com.catalystsquad.catalyst.squad.hello.world.example.api.v1.anorm.conversions.Types._ object Hello { def parserWithPrefix(prefix: String, sep: String = "_"): RowParser[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = parser(prefixOpt = Some(s"$prefix$sep")) def parser( id: String = "id", name: String = "name", prefixOpt: Option[String] = None ): RowParser[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello] = { SqlParser.get[_root_.java.util.UUID](prefixOpt.getOrElse("") + id) ~ SqlParser.str(prefixOpt.getOrElse("") + name) map { case id ~ name => { com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Hello( id = id, name = name ) } } } } object Newhello { def parserWithPrefix(prefix: String, sep: String = "_"): RowParser[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello] = parser(prefixOpt = Some(s"$prefix$sep")) def parser( name: String = "name", prefixOpt: Option[String] = None ): RowParser[com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello] = { SqlParser.str(prefixOpt.getOrElse("") + name) map { case name => { com.catalystsquad.catalyst.squad.hello.world.example.api.v1.models.Newhello( name = name ) } } } } }