I was looking at this https://github.com/jschaf/pggen to generate types from psql automatically. This way I can code faster and automate some grunt work. What do you think?
#What's the best practice in terms of CRUD operations with SQL databases?
11 messages · Page 1 of 1 (latest)
so it's like sqlc but it doesnt generate the queries?
there is an sqlc website you can use, dump schema and queries to bootstrap a project
thanks will look into it
how does it work with relationships?
there was an issue with left joins for a while, but I think its solved?
pggen is probably better for postgres specific workload, but it will fall apart if you use cockroachdb for example 
any thought on Ent?
Or you can write your own queries and use Proteus to hook them together.
https://github.com/jonbodner/proteus
will look into this as well thank you