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

This resolves #3619 and has some minor refactor in regards to reusable constants. As mentioned there, the `@sqlc-vet-disable` query annotation now accepts a list of rules to skip: ```sql /*...

### Version 1.27.0 ### What happened? I want to generate sql query using copyfrom annotations and got an error ### Relevant log output ```shell # package bankstatement error generating code:...

bug
:books: mysql
:wrench: golang
:computer: darwin

This aims to fix #3162, where in SQLite if `schema.sql` contained `CREATE TABLE "users"` and `query.sql` contained `SELECT * from users`, it would complain `relation "users" does not exist`, because...

I have a MySQL query with multiple named parameters. everything is fine but for bellow chunk: ```sql AND ( sqlc.narg(phone_filter) IS NULL OR ( ( length (sqlc.narg(phone_filter)) != 11 OR...

:books: mysql

### Version 1.27.0 ### What happened? The pgvector support introduced in v1.23.0 doesn't seem to play nicely with the `:copyfrom` command. I get the following error with the setup described...

bug
:books: postgresql
:computer: linux

### What do you want to change? Currently, while implementing a Dynamic Query using PGX / Squirrel I find myself writing an updating a var value that contains a slice...

enhancement
:books: postgresql

### Version 1.25.0 ### What happened? I have a table with a column typed TIME NOT NULL. I generated code for select statement from this table and received an error...

bug
:books: mysql
:wrench: golang
:computer: darwin

### Version 1.27.0 ### What happened? when using emit_pointer_for_null_types my left join is []string instead of []*string ### Relevant log output ```shell 2024/10/11 18:20:31 can't scan into dest[8]: failed to...

bug
:books: postgresql