Right now, the WriteForeign/ReadForeign and ToSQLValue/FromSQLValue type classes are used to encode/decode values to/from the underlying database.
Could this type-level codec requirement be lessened, so that value-level codecs could be used instead (e.g. purescript-codec-argonaut)?
If so, I believe the Table type could take a record as an additional argument whose fields' values correspond to the codecs to use when encoding/decoding values for a given column.
Right now, the
WriteForeign/ReadForeignandToSQLValue/FromSQLValuetype classes are used to encode/decode values to/from the underlying database.Could this type-level codec requirement be lessened, so that value-level codecs could be used instead (e.g.
purescript-codec-argonaut)?If so, I believe the
Tabletype could take a record as an additional argument whose fields' values correspond to the codecs to use when encoding/decoding values for a given column.