com.augustnagro.magnum.DerivingUtil$
Not useful for typical user code; provided to help implement custom DbCodecs and associated typeclasses
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
For a Simple (non-ADT) enum type E, constructs a sequence of mappings from sql string representation to enum value. For example,
For a Simple (non-ADT) enum type E, constructs a sequence of mappings from sql string representation to enum value. For example,
@Table(PostgresDbType, SqlNameMapper.CamelToUpperSnakeCase)
enum Color { case Red, @SqlName("greeeeeen") Green, Blue }
Results in
Seq("Red" -> Color.Red, "greeeeeen" -> Color.Green, "Blue" -> Color.Blue)
Will produce a compile error if the enum is not simple (non-adt).
Type parameters
-
E
-
the enum type, like Color
-
Mels
-
enum Mirror's MirroredElemLabels
-
Mets
-
enum Mirror's MirroredElemTypes
Attributes
Finds the first SqlName annotation on type T
Finds the first SqlName annotation on type T
Attributes
Finds the first Table annotation on type T
Finds the first Table annotation on type T
Attributes