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

### Version 1.30.0 ### What happened? When using a NOT EXISTS clause in a correlated subquery, SQLC fails to recognize and generate the required parameter binding. Expected behavior: The generated...

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

## Summary Adds an optional `analyzer.accurate: true` mode for PostgreSQL that bypasses the internal catalog and uses only database-backed analysis for more accurate type information. ### Key Features - **Database-only...

:wrench: golang
size:L

### Version 1.28.0 ### What happened? I have the following CTE in my queries.sql ```sql WITH w_pending_sale_status as ( select * from (values ('SAVED'), ('IDLE'), ('IN PROGRESS'), ('HELD')) as pending_sale_status(status)...

bug
:books: postgresql
:wrench: golang
:computer: windows

:wrench: golang
size:XL

## Summary - Adds a MySQL database analyzer that validates queries against a real MySQL database during code generation - Creates managed databases (`sqlc_managed_{hash}`) based on migration content hash for...

:wrench: golang
size:L

### Version 1.25.0 ### What happened? When I generate the code, it returns an "ambiguous column" error, I tested this in MySQL directly and it works. The culprit is `(SELECT...

bug
:books: mysql
analyzer

Fixes https://github.com/sqlc-dev/sqlc/issues/4182 PostgreSQL LATERAL subqueries now correctly resolve column references to outer query tables.

:wrench: golang
size:L

Is there a way to exclude columns from `sqlc.embed(my_table)`? It would be useful to avoid reading from specific columns (e.g. columns you need to drop, and you want to stop...

### Version 1.30.0 ### What happened? We use SQLC through Docker and had no issues running `generate` and `vet` commands under 1.29.0. Upgrading to the `sqlc/sqlc:1.30.0` image. This fails when...

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

### Version 1.30.0 ### What happened? I'm trying to generate a query using one of the following variations: ```sql SET LOCAL app.current_user_id = @user_id::text; -- syntax error at or near...

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