Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ethanpailes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
ethanpailes
5y ago
If you want a code generator like this that has support for that kind of thing, https://github.com/opendoor/pggen can automatically infer these kinds of relationships based on foreign key relationships and emit slices
32.
▲
by
ethanpailes
5y ago
I could imagine that you're building up the array in go code and want the empty set to be handled as expected.
33.
▲
by
ethanpailes
5y ago
Dang unfortunate name clash. I wrote a very similar tool of the same name and just open sourced it. I stumbled on your tool right after publishing https://github.com/opendoor/pggen .
34.
▲
by
ethanpailes
5y ago
I'm a big fan of the database first code generator approach to talking to an SQL database, so much so that I wrote pggen[1] (not to be confused with pggen[2], as far as I can tell a sqlc fork, which I just recently learned about). I&#x
35.
▲
Pggen: A Golang ORM Alternative
(medium.com)
10 points
by
ethanpailes
5y ago
|
0 comments