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 Other ### What happened? Version: 1.15.0 Similar to #1682 `batch.go` fails to import `"github.com/jackc/pgtype"` and `"database/sql"` for batch queries statements when only the schema references the type. The...

bug
triage

### What happened? Version: ``` sqlc version v1.15.0 ``` Running `sqlc generate` on this query: ``` SELECT * FROM table WHERE CASE WHEN TRUE THEN `status` IN ( @HELP::int[] )...

bug
triage

If this is the desired direction for resolving #1364 , I can further work on this PR and add documentation

### Version Other ### What happened? Using `FORMAT` with more than 2 arguments results in sqlc reporting that no function matching can be found. `FORMAT` is a bit of a...

bug
triage

### Version Other ### What happened? I got this output when updating to v1.15.0: ```patch type DeliveryStrategy string +type NullDeliveryStrategy struct { + DeliveryStrategy DeliveryStrategy + Valid bool // Valid...

bug
triage

### Version Other ### What happened? The "Version" dropdown in "Bug Report" does not let you select version 1.15.0, the latest released version. ### Relevant log output _No response_ ###...

bug
triage

### What do you want to change? I would like to generate the names of the table and its fields from the database in addition to the generation of entities....

enhancement
triage

Given the following schema: ```sql CREATE TABLE foo ( bar INTEGER NOT NULL ); ``` It would seem that the correct way to override the type for the bar column...

bug
documentation
:books: postgresql

Bumps [github.com/jackc/pgx/v4](https://github.com/jackc/pgx) from 4.16.1 to 4.17.0. Changelog Sourced from github.com/jackc/pgx/v4's changelog. 4.17.0 (August 6, 2022) Upgrade pgconn to v1.13.0 Upgrade pgproto3 to v2.3.1 Upgrade pgtype to v1.12.0 Allow background pool...

dependencies
go

### Version 1.14.0 ### What happened? Cannot not generate queries ### Relevant log output ```shell error generating code: template: interfaceCode.tmpl:12:71: executing "interfaceCodePgx" at : error calling DefineType: no type for...

bug
triage