Louis Pilfold@louispilfold·Mar 18, 2021Does anyone have a nice way of storing ADTs/variants/discriminated unions in PostgreSQL?34
Brendan Zabarauskas@brendanzabReplying to @louispilfoldI remember seeing a few articles around on this, for example this one:typeable.ioSum Types for Relational DatabasesThere are a few ways to encode sum types in relational databases. Not so long ago I was thinking about the same problem and came up with slightly different solutions.11:51 PM · Mar 18, 2021·Twitter Web App2 Likes
Brendan Zabarauskas@brendanzab·Mar 18, 2021Replying to @brendanzab and @louispilfoldAlso this one, by @mattoflambda: https://parsonsmatt.org/2019/03/19/sum_types_in_sql.html…12