Closed lfborjas closed 4 years ago
Alternatively, what I really care about is:
enum
support. Maybe we can just write the instances, like this guy does for UUIDs: https://bitemyapp.com/blog/uuids-with-persistent-yesod/beam
purview (e.g. I don't think it can deal with the fancy ts_stat($$some-query-here$$)
situation either. keys
that beam
makes. Maybe it's stockholm syndrome, but I like Entity Key Dream
for example: never having to carry around the primary key with the record!After the improvements in #19 and #20, not inclined to do this just yet.
They have:
ZodiacSign
andGender
much faster, since we'd no longer have to deal with string comparisons!INSERT ON CONFLICT
jsonb_array_elements
Try it out in a separate module, defining types for
Dream
and maybeUser
, and see if we can get our gnarly queries to be extensible -- that's what worries me the most about esqueleto, its paltry support for fancy postgres features and the early need to fall back to raw SQL, which isn't composable nor type safe.