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.27.0 ### What happened? In Python the generated code requires to be ordered in a certain way (fields with defaults at the end). This was taken care by...

bug
regression
:wrench: python

### Version 1.26.0 ### What happened? ```sql JOIN LATERAL ( SELECT ordinality AS ord FROM jsonb_array_elements_text(p.variants) WITH ORDINALITY WHERE value = v.id::text ) idx ON true ``` get_multiple_products.sql:99:21: column "ordinality"...

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

### Version 1.27.0 ### What happened? While writing a migration which made use of a temporary table, I observed a limitation/quirk of sqlc. The exact migration involves a lot of...

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

### What do you want to change? We plan to migrate some Postgres workload to ScyllaDB in the next months due to scaling and cost reasons. We heavily use sqlc...

enhancement
future

### Version 1.27.0 ### What happened? Have a simple ddl for an object in postgres. It uses a TYPE both as an ARRAY and also as a simple object. The...

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

### Version 1.26.0 ### What happened? First time I tried field name "id" in both table, it's very common in realworld, but it said "id" is ambiguous, so I change...

bug

### Version 1.23.0 ### What happened? I have a query using a CTE with a WHERE clause filtering a date range using BETWEEN, and sqlc generated the params struct with...

bug
triage

Fixes: https://github.com/sqlc-dev/sqlc/issues/3204 Allow using table name to the left of MATCH or equality operator. Related: - https://github.com/sqlc-dev/sqlc/issues/1797 - https://github.com/sqlc-dev/sqlc/pull/2531

### Version 1.25.0 ### What happened? SQLite requires a `PRAGMA` query to enable foreign key constraints. Unfortunately, sqlc does not seem to recognise `PRAGMA` as a valid query, and actually...

enhancement
:books: sqlite

### Version 1.26.0 ### What happened? When a query specifies all columns, the generated function should return the struct from models.go. However, if the column order from the query is...

bug