From 68d356add3747fe9e895d12281a92505aa39c04b Mon Sep 17 00:00:00 2001 From: takapi327 Date: Tue, 31 Dec 2024 18:06:02 +0900 Subject: [PATCH] Added comment --- module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Codec.scala | 6 ++++++ module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Decoder.scala | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Codec.scala b/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Codec.scala index 1273e7bbe..0855bf4ef 100644 --- a/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Codec.scala +++ b/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Codec.scala @@ -16,6 +16,12 @@ import org.typelevel.twiddles.TwiddleSyntax import ldbc.sql.ResultSet +/** + * Symmetric encoder and decoder of MySQL data to and from Scala types. + * + * @tparam A + * Types handled in Scala + */ trait Codec[A] extends Encoder[A], Decoder[A]: self => diff --git a/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Decoder.scala b/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Decoder.scala index ee2559877..da4a884e6 100644 --- a/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Decoder.scala +++ b/module/ldbc-dsl/src/main/scala/ldbc/dsl/codec/Decoder.scala @@ -17,7 +17,7 @@ import org.typelevel.twiddles.TwiddleSyntax import ldbc.sql.ResultSet /** - * Class to get the DataType that matches the Scala type information from the ResultSet. + * Trait to get the DataType that matches the Scala type information from the ResultSet. * * @tparam A * Scala types that match SQL DataType