From b09745a1addfbf1b2e9a0afe0c1dae8c0ec0c13d Mon Sep 17 00:00:00 2001 From: takapi327 Date: Mon, 30 Dec 2024 21:13:15 +0900 Subject: [PATCH] Added Country Decoder --- tests/src/main/scala/ldbc/tests/model/Country.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/src/main/scala/ldbc/tests/model/Country.scala b/tests/src/main/scala/ldbc/tests/model/Country.scala index f438e1ed0..cd4371817 100644 --- a/tests/src/main/scala/ldbc/tests/model/Country.scala +++ b/tests/src/main/scala/ldbc/tests/model/Country.scala @@ -46,6 +46,12 @@ object Country: given Decoder[Continent] = Decoder[String].map(str => Continent.valueOf(str.replace(" ", "_"))) + given Decoder[Country] = ( + Decoder[String] *: Decoder[String] *: Decoder[Continent] *: Decoder[String] *: Decoder[BigDecimal] *: + Decoder[Option[Short]] *: Decoder[Int] *: Decoder[Option[BigDecimal]] *: Decoder[Option[BigDecimal]] *: + Decoder[Option[BigDecimal]] *: Decoder[String] *: Decoder[String] *: Decoder[Option[String]] *: + Decoder[Option[Int]] *: Decoder[String] + ).to[Country] given Table[Country] = Table.derived[Country]("country") class CountryTable extends SchemaTable[Country]("country"):