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? Sqlc panics when generating from migration containing PLPGSQL function ### Relevant log output ```shell panic: runtime error: invalid memory address or nil pointer dereference...

bug
:books: postgresql
:wrench: golang

Fix [Table "bonuses" and "product_metadata" incorrectly generates model name. #3552](https://github.com/sqlc-dev/sqlc/issues/3552)

### Version 1.27.0 ### What happened? I have 2 tables with name like `bonuses, product_metadata` when I using `sqlc` to generate models. The struct name generated seems unexpected - table...

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

### What do you want to change? The `Querier` interface currently looks like: ```go func (q *Queries) Example(ctx context.Context, arg ExampleParams) error { _, err := q.db.Exec(ctx, example, arg.Field1, arg.Field2)...

enhancement
:books: postgresql

### What do you want to change? Thank you for an awesome tool! When I had tried a simple schema and a query for SQLite3, I got `relation "users" does...

enhancement
:wrench: golang
:books: sqlite

### Version 1.27.0 ### What happened? I think nullable vectors should map to a `*pgvector.Vector`? The current code doesn't work for nil vectors: ``` Error=can't scan into dest[7]: unsupported data...

bug
:books: postgresql

### Version 1.26.0 ### What happened? My schema, generated from pg_dump, has: ``` embedding public.vector(1536) ``` This generates `interface{}` which won't scan correctly. Whereas ``` embedding vector(1536) ``` Generates `pgvector.Vector`...

bug
:books: postgresql

Bumps golang from 1.22.6 to 1.23.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang&package-manager=docker&previous-version=1.22.6&new-version=1.23.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...

dependencies
docker

### What do you want to change? sqlc has support for custom data types, including pointer types. I was hoping to use it to support custom deserialization for a type...

enhancement
:books: mysql
:books: postgresql
:wrench: golang
:books: sqlite

### Version 1.27.0 ### What happened? I have a simple query with a WHERE clause that references a field of a composite type. const getTagFor = `-- name: GetTagFor :many...

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