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

### What do you want to change? ### Example scenario I use a generic type for optional values and want to add an override for an optional UUID to that...

enhancement
:wrench: golang

### Version 1.30.0 ### What happened? I have a table with an ltree column named `path`. When trying to use `:copyfrom` to copy data into the table, I get error:...

bug
:books: postgresql
:wrench: golang
:computer: darwin

### What do you want to change? `sqlc` generates methods for `:many` queries that read all rows into a slice. For example, the parameterised `ListAuthorsByIDs` query executes: ```sql -- name:...

enhancement
:books: postgresql
:wrench: golang

### Version 1.30.0 ### What happened? `sqlc generate` errored with the message `schema.sql:14:16: column "val" does not exist` on a schema that is valid SQL This happens when the schema...

bug
:books: postgresql
:wrench: golang
:computer: darwin

### Version 1.30.0 ### What happened? Hello! First of all, thanks for the great work on sqlc. We rely on it heavily and it has been a huge boost to...

bug
:books: mysql
:wrench: golang

### What do you want to change? With latest postgresql versions, they have added `--restrict-key=` and other meta-commands [here](https://www.postgresql.org/docs/current/app-pgdump.html) When running `pg_dump` command, it adds a new line `\restrict `...

enhancement

This is kind of a lazy quick-and-dirty implementation that doesn't attempt to consolidate some duplicate line parsing that we do during migration removal and just sticks a func right in...

:wrench: golang
size:S

### What do you want to change? https://github.com/sqlc-dev/sqlc/pull/652 introduced mapping JSON type to json.RawMessage, however json.RawMessage couldn't handle `nil` values (since it's not a sql.Scanner) it should be like how...

enhancement

This pull request adds support for renaming Go enum values via a new `rename_enum` option in the configuration. The changes update the code generation logic to use custom names for...

:wrench: golang
size:M

### Version 1.30.0 ### What happened? When using pgx driver (at least), if using `sql.[].database.uri`, sqlc will crash like below when using the docker image sqlc/sqlc because pgx builds upon...

bug
:books: postgresql
:wrench: golang
:computer: linux