sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
`tern` allows sql scripts reference scripts in sub folders with the syntax `{{ template "path/to/script" . }}`. `sqlc` does not accept this syntax appears within migration scripts, which means you...
### What do you want to change? A query may be expected to only match a single row, but due to bugs, ends up accidentally matching multiple rows. Rather than...
### Version 1.30.0 ### What happened? I'm using MySQL with `sqlc` and encountered an issue where the generated `Params` struct includes duplicated parameters when running a query that: - Joins...
fixes https://github.com/sqlc-dev/sqlc/issues/4052 The generated QueryParams struct for the example from the issue is indeed: ```go type SearchFoodParams struct { Food string FoodType *FoodType } ``` I wrote [a minimal example](https://github.com/stampflit/sqlc-minimal-repro-playground)...