sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

CUSTOMIZE JSON TAG SQLC EMBED

Open lcnlvrz opened this issue 1 year ago • 0 comments

What do you want to change?

It would be really amazing if we can somehow define json tag for embedded structs when use sqlc.embed

Currently when you have a view with snake case (i.e: source_addresses) and then create a query that left join from this table view and use sqlc.embed, compilation output build a struct with a json tag that does not have underscore (i.e: sourceaddress)

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

lcnlvrz avatar Feb 12 '24 17:02 lcnlvrz