sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### 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...
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...
### 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)...
### 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...
### 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...
### 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`...
Bumps golang from 1.22.6 to 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...
### 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...
### 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...