Log in
Sign up
See new Tweets

Conversation

Louis Pilfold
@louispilfold
·
Mar 18, 2021
Does anyone have a nice way of storing ADTs/variants/discriminated unions in PostgreSQL?
3
4
Brendan Zabarauskas
@brendanzab
Replying to
@louispilfold
I remember seeing a few articles around on this, for example this one:
typeable.io
Sum Types for Relational Databases
There 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 App
2
Likes
Brendan Zabarauskas
@brendanzab
·
Mar 18, 2021
Replying to
@brendanzab
and
@louispilfold
Also this one, by
@mattoflambda
: https://parsonsmatt.org/2019/03/19/sum_types_in_sql.html…
1
2
Louis Pilfold
@louispilfold
·
Mar 19, 2021
Thank you
1
Show replies