sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### What do you want to change? Is there no way to make a decorator that handles errors now? I want the generated functions to immediately return an error, which...
While working on a solution for #364 which is based on SQL functions, I hit the following problem. Arguments for SQL functions in PostgreSQL are nullable by default. With `CALLED...
### Version 1.14.0 ### What happened? the above query does not compile using sqlc generate. ### Relevant log output ```shell # package orm queries/users.sql:8:5: column "rank_email" does not exist ```...
### What do you want to change? This idea comes from various open and closed issues. Most recently #1485 (which I jumped in at the last minute to help push...
### Version 1.13.0 ### What happened? I have a column (`credits`) in a PostgreSQL table whose datatype is `smallint[4]`, an array of 4 `smallint` types. When I put the query...
This change allows models to be split into a different package. The major benefit of this is to allow multiple sqlc querier packages to use the same scheme, and models....
### Version 1.11.0 ### What happened? In v1.11.0, when I use an alias for a subquery table, sqlc will report an error for table alias does not exist, but when...
### Version 1.14.0 ### What happened? sqlc.narg is a great addition. Unfortunately, it does not seem to work for enum types. I would really like to be able to use...
### Version 1.13.0 ### What happened? One query returns a column as []uint8 but the remaining 5 or 6 return it as a float. The generated field on the model...
### Version 1.13.0 / 1.14.0 ### What happened? See the [postgresql docs](https://www.postgresql.org/docs/current/functions-subquery.html#FUNCTIONS-SUBQUERY-ANY-SOME) for more information about ANY/SOME. ## Current State | field_id | field_name | description | |--------|-------------|------------| | 19ea00a0-85dc-434e-a273-74f61b65e4cb...