sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.24.0 ### What happened? We have a number of views that are created by joining tables, grouping, and `array_agg`ing some columns. Sqlc generated the right code previously, but...
### Version 1.24.0 ### What happened? When using `mysql` as the engine, the table and column names are normalized to lowercase, losing useful naming conventions from the database. It's a...
Hi! Great work on this project! I was wondering if it's currently possible to export Go model structs to a different folder package. I think this could be a good...
### Version 1.24.0 ### What happened? I'm trying to do a little complicated SQL and it seems that I cannot properly escape the natural language to put in a question...
### What do you want to change? I use SQLC to generate data storage model, repository interfaces, and their implementations from SQL files (obviously!), and absolutely love what the tool...
### What do you want to change? Recently I had to write a plugin for slight alterations of the default behavior of the golang generator for postgres. To build the...
### What do you want to change? Consider generating enums for check constraints (in a similar way as if postgres enums were defined). For example, given this table: ```sql CREATE...
### Version 1.24.0 ### What happened? When using the `rename` configuration, the JSON tags that are generated are not renamed. Look at the playground example, the output Struct is: ```go...
### Version 1.23.0 ### What happened? sqlc doesn't generate byte arrays when using unnest with bytea[]. The generated query below results in: ``` const insertTradesTemp = `-- name: InsertTradesTemp :exec...
An attempt to fix #2686 It make the argument of `sqlc.embed` used as the name of the field name in Go struct. This allow join of the same table with...