sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.13.0 ### What happened? (Preface: I know I am being a little stupid) In queries.sql I wrote the following query: ``` -- name: listlegalsets :many SELECT FROM legalsets...
### What do you want to change? I would like Sass-like variables to be written in sql so I can use the same value across both a column's default and...
Hi I want asking something about nullable enum. Since some of my projects has nullable enum, I want try migrate some queries on those projects using `sqlc`. So, I try...
I noticed this happening while working on the Kotlin codegen. By the time it gets down to codegen in the intermediate `*compiler.Column` values, `blob` becomes `text` and `varbinary` becomes `varchar`....
When trying to use sqlc for our project I noticed a few things were not supported that we require. We do use CockroachDB with the postgres engine. 1. The [`ON...
This PR adds support for generating model fields from multi-dimensional postgresql array columns. The approach here is to pass around an additional column attribute `array_bounds` representing the dimensions of the...
### What do you want to change? For example, in an auxiliary join for the `widget` table: ```sql SELECT w.id, w.price, w.description, p.full_name AS owner_full_name FROM widget AS w INNER...
### What do you want to change? I would like to have support for `select * from table where id in (pleaseaddsupport)` For example the one below is not supported...
### Intro This PR allows `sqlc.embed` to be used in a query. This is based on the discussion at #984. You can now write a query like ```sql -- name:...
### Version 1.14.0 ### What happened? sqlc appears to be referencing invalid table names when parsing the following JSON-heavy query. ### Relevant log output ```shell % ~/go/bin/sqlc generate panic: runtime...