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? **Bug Description** In array comparison operations using ANY/SOME/ALL operators, type inference occurs incorrectly in the auto-generated Go code. [https://www.postgresql.org/docs/current/functions-comparisons.html#FUNCTIONS-COMPARISONS-ANY-SOME](url) As can be seen in...

bug
triage

**Description** In array comparisons made using ANY/SOME/ALL operators, the auto-generated Go code has incorrect type declarations. **Related Issue** #3083 **Changes** - The **_QueryValue_** struct accepts an extra field. This _QueryText_...

### Version 1.24.0 ### What happened? A bug happened! ### Relevant log output ```shell column "elem" does not exist ``` ### Database schema ```sql CREATE TABLE IF NOT EXISTS wallet_tmp...

bug
triage

A first step towards implementing https://github.com/sqlc-dev/sqlc/issues/2800. I'd like to add some more tests to meta_test.go if I have time. Some things to consider before merging: 1. What to do about...

### Version 1.24.0 ### What happened? When you do a query like `select sum(amount) from my_table where user_id = $1` the return of the generated go function will be of...

bug
triage

### What do you want to change? I use sqlc with a separate migration tool. While my migration tool doesn't require it, I generally like my migrations to be idempotent....

enhancement

### What do you want to change? I'd like the ability to override the column type at the query level. At the table level, the types come out correct but...

enhancement

### What do you want to change? Hi! I run into a little issue every time I use SQLC (which is a lot btw). I sometimes need to use auto-generated...

enhancement
triage

Just showing my work to get `MERGE` to the point of generating input params in a more permissive `:exec` context

### Version 1.24.0 ### What happened? Can't generate the files, because it seems it can't unmarshal the `sqlc.yaml` file. ### Relevant log output ```shell go run -mod=mod github.com/sqlc-dev/sqlc/cmd/sqlc generate go:...

bug
regression