sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Generate type-safe code from SQL

Results 511 sqlc issues
Sort by recently updated
recently updated
newest added

### Version 1.14.0 ### What happened? I'm trying to write a DELETE query which I want to join the results with another table. The way that I am familiar with...

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

### Version 1.14.0 ### What happened? Type overrides not working with nullable varchar in mysql i have three `varchar(255)` fields with `DEFAULT NULL`. but for some reason types override does...

bug
triage

### Version 1.10.0 ### What happened? I wanted to make a `INSERT OR IGNORE INTO` query against a sqlite3 db (https://sqlite.org/lang_insert.html). When running `sqlc` it thinks that it is a...

bug
wontfix
:wrench: golang
:books: sqlite
:computer: linux

sqlc, like protoc, aims to generate code for multiple languages. The second language we're looking to add is TypeScript. > ### Getting started > [!WARNING] > The TypeScript plugin (sqlc-gen-typescript)...

enhancement
new/codegen

### What do you want to change? I propose a mechanism that allows users of the generated code to instrument the Querier. Use-cases could be, but are not limited to:...

enhancement
:wrench: golang
proposal

### Version 1.14.0 ### What happened? I have the following query: ```sql SELECT AVG(rating) FROM product_ratings WHERE product_id = 1234; ``` This generates the following go code: ```go var avg...

bug
triage

### Version Other ### What happened? Version Other What happened? Hint: I am using v1.13.0 with `PostgreSQL` DB to generate the Go code. ### Looks like the `citext` column type...

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

### Version 1.12.0 ### What happened? I guess the parser doesn't understand that the alias after UNNEST defines a column, so when later trying to determine the type of the...

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

### Version 1.11.0 ### What happened? >sqlc generate not working with this particular 'with' case. ### Relevant log output ```shell dept_list.sql:1:1: relation "dept" does not exist ``` ### Database schema...

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

### Version 1.13.0 ### What happened? A query like ``` SELECT * FROM foo WHERE (a, b) < (?, ?) ``` is valid in MySQL, but sqlc is generating the...

bug
:books: mysql
:wrench: golang
:computer: linux