zio.blocks.sql.DbCodec
See theDbCodec companion object
Bidirectional codec between a Scala value A and one or more database columns.
Column ordering matches the columns IndexedSeq. The startIndex parameter in positional readValue / writeValue is 1-based (JDBC convention): column 1 corresponds to columns(0). Query decoding prefers the label-based overload so result column order can differ from codec order as long as column labels still match.
Attributes
- Companion
- object
- Source
- DbCodec.scala
- Graph
-
- Supertypes
Members list
In this article