sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### 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...
### 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:...
### 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:...
### 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...
### 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...
### 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 `...
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...
### 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...
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...
### 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...