sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Generate type-safe code from SQL

Results 584 sqlc issues
Sort by recently updated
recently updated
newest added

### 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...

bug
:books: postgresql
:computer: linux
analyzer/db

### 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...

bug
triage

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...

enhancement

### 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...

bug
:books: mysql

### 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...

enhancement

### 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...

enhancement

### 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...

enhancement
:books: postgresql
:wrench: golang

### 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...

bug
triage

### 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...

bug
triage

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...