Turns a CellDecoder into a RowDecoder, for rows that contain a single value.
Turns a CellDecoder into a RowDecoder, for rows that contain a single value.
This provides default behaviour for RowDecoder.field by decoding the first cell.
RowDecoder[Int].decode(Seq("123", "456", "789")) res1: DecodeResult[Int] = Success(123)
Turns a CellEncoder into a RowEncoder, for rows that contain a single value.
Turns a CellEncoder into a RowEncoder, for rows that contain a single value.
scala> RowEncoder[Int].encode(123) res1: Seq[String] = List(123)
Provides a RowDecoder instance for all types that have an HasBuilder
, provided the inner type has a
CellDecoder.
Provides a RowDecoder instance for all types that have an HasBuilder
, provided the inner type has a
CellDecoder.
List
, for example:
RowDecoder[List[Int]].decode(Seq("123", "456", "789")) res1: DecodeResult[List[Int]] = Success(List(123, 456, 789))
Provides a RowEncoder instance for all traversable collections.
Provides a RowEncoder instance for all traversable collections.
List
, for example:
scala> RowEncoder[List[Int]].encode(List(123, 456, 789)) res1: Seq[String] = List(123, 456, 789)
All default RowCodec instances.