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.27.0 ### What happened? I want to type-cast some query variables but it doesn't compile ### Relevant log output ```shell ❯ sqlc generate line 15:8 no viable alternative...

bug
:wrench: golang
:computer: darwin
:books: sqlite

### Version 1.27.0 ### What happened? A `json_object()` function that returns a JSON-formatted object is scanned as a string instead of `[]byte` or `json.RawMessage`. The return type for a `:many`...

bug
:wrench: golang
:computer: darwin
:books: sqlite

### Version 1.27.0 ### What happened? I tried to install sqlc with go install and downloaded the prebuilt binary for windows. If i try to run sqlc, nothing happens. It...

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

### Version 1.27.0 ### What happened? Hi Thank you for developing sqlc! I work with Postgres. I use init script to provision a database, a non-admin user and non-public schema....

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

### Version 1.24.0 ### What happened? Trying to use embed, but I am getting some weird error about `edited query syntax` being invalid, but no pointers as to what's happening....

bug
triage

### Version 1.26.0 ### What happened? 1.26.0 crashes while 1.25.0 reports `query.sql:5:5: subquery in FROM must have an alias` ### Relevant log output ```shell panic: runtime error: invalid memory address...

bug

Bumps the production-dependencies group with 3 updates in the /docs directory: [certifi](https://github.com/certifi/python-certifi), [requests](https://github.com/psf/requests) and [snowballstemmer](https://github.com/snowballstem/snowball). Updates `certifi` from 2025.1.31 to 2025.4.26 Commits 275c9eb 2025.04.26 (#347) 3788331 Bump actions/setup-python from 5.4.0...

dependencies
:wrench: python
python
size:XS

Bumps the production-dependencies group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) | `1.9.2` |...

:wrench: golang
dependencies
go
size:S

### Version 1.28.0 ### What happened? The `sqlc.arg` or `@` is not working for `LIMIT` and `OFFSET`. ### Relevant log output ```shell sqlc generate failed. # package query.sql:23:9: syntax error...

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

### Version 1.29.0 ### What happened? I have a table with a TEXT[][], for which I have both an insert and a select statement. The select statement correctly returns a...

bug
:books: postgresql
:wrench: golang