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

We've encountered an issue when using managed: true in our SQLC configuration with PostgreSQL databases. Problem: When using local schema parsing (`managed: false`), SQLC correctly interprets PostgreSQL enum types and...

:books: postgresql
:wrench: golang

I am trying to run the `sqlc generate` and one of the query in the file I have is as below ```sql WITH update_namespaces AS ( UPDATE namespaces SET name...

### What do you want to change? Hi, I have interest to https://github.com/sqlc-dev/sqlc/issues/1505 So, I tried to pass tests on my local environment first. If this project have some document...

enhancement
:books: mysql
:books: postgresql

### What do you want to change? In my codebase I have ```go type Identity int64 ``` Imagine a query like ```sql -- name: GoGetThem :many SELECT * FROM users...

enhancement
:books: postgresql
:wrench: golang

### Version 1.27.0 ### What happened? I'm using goose for migrations and sqlc to generate queries and models. I have a migration that updates multiple column names. When I run...

bug

### Version 1.28.0 ### What happened? **Describe the bug** When using `COALESCE` in an UPDATE query, SQLC generates Go parameters with non-nullable types (e.g., `int32`, `string`) instead of nullable pointers...

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

### Version 1.27.0 ### What happened? docker sqlc generate raise panic when I try to generate the code with a view that contains subquery and cross join on postgres. I...

bug
:books: postgresql
:wrench: golang

### Version 1.28.0 ### What happened? I have read some issues related to this but I can't fix it while using the latest version. There is this column in my...

bug
:books: postgresql
:computer: windows

### Version 1.29.0 ### What happened? If schema.sql contains a mixed case table name, you can only drop the table using lowercase name, otherwise, you get a relation `"" does...

bug
:books: sqlite