DT
Join ServerDrizzle Team
help
type union on entire row
i can think of workarounds for this but figured i'd ask
if i have a table that's like
[id, type, data (json)]
and i want a discriminated union based on type - is there a way to do this with drizzle?
i was going to do my own fancy type stuff but though i'd ask first
if i have a table that's like
[id, type, data (json)]
and i want a discriminated union based on type - is there a way to do this with drizzle?
i was going to do my own fancy type stuff but though i'd ask first
No, I don't think it's possible with Drizzle alone