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? Queries like `SELECT blah FROM (SELECT 1 AS blah);` crash `sqlc generate`. Changing it to `SELECT blah FROM (SELECT 1 AS blah) t1;` works...

bug

### Version 1.25.0 ### What happened? See error in the playground. Interestingly, other overrides using `import` work fine with the same package: ``` - column: "changes.status" go_type: import: "github.com/overmindtech/sdp-go" type:...

bug

### Version 1.25.0 ### What happened? See the following [playground](https://play.sqlc.dev/p/b307e2084562bc2c64c6a2d8d55935ecb757be9223234bceb3e6941a379b07cd): ```sql CREATE TYPE "public"."risk_progress_milestone" AS ( status "public"."change_risk_status", message text ); CREATE TABLE authors ( id BIGSERIAL PRIMARY KEY, name...

bug

### What do you want to change? This feature would be very useful for debugging, and would help to improve the quality of sqlc itself. I am getting a strange...

enhancement

### Version 1.25.0 ### What happened? `sqlc` failed to compile a query with a recursive query in the WHERE clause. Error message: `relation "xxx" does not exist` The GetTest1 and...

bug

### Version 1.17.2 ### What happened? sqlc was installed by this: ``` bash go install github.com/kyleconroy/sqlc/cmd/sqlc@latest ``` Used ``` bash sqlc generate ``` As result got messages that I should...

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

### Version 1.24.0 ### What happened? I'm having some trouble getting the `emit_pointers_for_null_types` option to apply to a SQLite schema & queries, i.e. `sql.Null*` types aren't replaced with their pointer...

bug
triage

Support wrapping any nullable field with a generic type provided by the user. The config looks like this: ```yaml sql: - gen: go: ... generic_null_type: import: "database/sql" type: "Null" ```...

### Version 1.25.0 ### What happened? In issue #3088, `SMALLINT` was (correctly) changed from `int32` to `int16`. Surprisingly, `TINYINT`, which should have `int8`, has not been touched, resulting in the...

bug