[go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread nanmu42
I think this is brilliant! Hoping to use it in my next project. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To

Re: [go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread kyle
Vasiliy, Take a look at the supported examples. sqlc has no problem handling five joins and a having clause. Kyle On Wednesday, December 11, 2019 at 12:18:20 PM UTC-8, Vasiliy Tolstov wrote: > > Thanks! But how about real world cases like joining 5 tables and using > having and other stuff?

Re: [go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread Vasiliy Tolstov
Thanks! But how about real world cases like joining 5 tables and using having and other stuff? ср, 11 дек. 2019 г. в 22:48, : > > Hey gophers, > > I'm excited to announce sqlc, my project for turning SQL into type-safe Go. > With sqlc, the following SQL: > > > CREATE TABLE authors ( > id

[go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread kyle
Hey gophers, I'm excited to announce sqlc, my project for turning SQL into type-safe Go. With sqlc, the following SQL: CREATE TABLE authors ( id BIGSERIAL PRIMARY KEY, name text NOT NULL, bio text ); -- name: GetAuthor :one SELECT * FROM authors WHERE id = $1 LIMIT 1; gets turned into