type union on entire row

Tthdxr5/17/2023
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
Bbloberenober5/17/2023
No, I don't think it's possible with Drizzle alone