It might be nice to have this implemented as a function instead of a macro that can be called arbitrarily instead of having to be used.
Arbor.Tree.children(struct)
I had experimented with this originally, but using fragment when postgres objects were interpolated they were interpreted as strings, so you would get stuff like:
SELECT * from 'comments'
Which obviously blows up. I think this could be possible with a custom ecto datatype that type cast postgres objects correctly.
It might be nice to have this implemented as a function instead of a macro that can be called arbitrarily instead of having to be
use
d.I had experimented with this originally, but using
fragment
when postgres objects were interpolated they were interpreted as strings, so you would get stuff like:Which obviously blows up. I think this could be possible with a custom ecto datatype that type cast postgres objects correctly.