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.25.0 ### What happened? I'm trying this I expected the generated `UpdateEnvParams` to contain nullable types since: - the schema contains `NOT NULL` fields - the update SQL...

bug

Adds a new configuration option json_tags_omit_empty which adds `omitempty` to JSON tags. Closes https://github.com/sqlc-dev/sqlc/issues/1098 Closes https://github.com/sqlc-dev/sqlc/issues/1084 Related To: https://github.com/sqlc-dev/sqlc/discussions/1132 https://github.com/sqlc-dev/sqlc/discussions/1087

### Version 1.24.0 ### What happened? Given this SQL on mysql ``` -- name: TestSQLC :many select NULL name, 12 age union all select 'name', 13 ``` sqlc (version 1.18...

bug
:books: mysql
:wrench: golang
analyzer

### Version 1.16.0 ### What happened? Postgres _copyfrom_ query in a table which has a column with _Enum_ type fails. I am using pgx5. ### Relevant log output ```shell ERROR:...

bug
:books: postgresql
:wrench: golang
:computer: linux
pgx/v5

### What do you want to change? I would expect that only comments _above_ the sql query are persisted as function documentation. The in-query comments are concatted with the beginning-of-query...

enhancement

### Version 1.24.0 ### What happened? Compliation successful with invalid WHERE condition. In the following query `creator_code` is not a valid column (should be `url_code`). When using the `in ($1::TEXT[])`...

bug
:books: postgresql
analyzer

### What do you want to change? I had a typo in my `sqlc.json` file: ```json { "version": "2", "sql": [{ "schema": "schema/schema.sql", "queries": "queries.sql", "engine": "postgresql", "gen": { "go":...

enhancement
triage

### Version 1.14.0 ### What happened? Hello, I found an error while using sqlc and mysql return value must be int64 but it's an interface . need cast to int64...

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

### Version 1.24.0 ### What happened? MySQL's CRC32 function returns an UNSIGNED INT, but sqlc generates a int32 in Golang. We should update the catalogs to a) be able to...

bug