sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.15.0 ### What happened? For MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice. The...
### Version 1.15.0 ### What happened? When generating a query using a `WHERE ... IN (?)` statement, I expected to get a function out that looked similar to `func (q...
### Version 1.15.0 ### What happened? use left join ,the generate list struct column is sql.NullString,but in mysql server the column define not null ### Relevant log output ```shell type...
Various documentation improvements. - Be explicit that sqlc does not perform migrations, but rather parses the up migrations and ignores the down migrations. - Update the configuration reference to link...
### Version 1.15.0 ### What happened? I am trying to run sqlc from the official docker container, When I do, I get an error that the file sqlc.yaml does not...
Fixes #1224 In Go, PostgreSQL's interval type should be string, not int64.
### Version 1.15.0 ### What happened? In the playground example I supplied, you can see that I have used both `sqlc.arg` and `sqlc.narg` when casting to `TEXT[]`, but the generated...
### Version 1.15.0 ### What happened? PostgreSQL supports specifying `BEFORE` or `AFTER` when adding a value to an existing `ENUM`, see [docs](https://www.postgresql.org/docs/current/sql-altertype.html). sqlc does not pick this up and simply...
### Version 1.15.0 ### What happened? When trying to debug an endtoend test (e.g. TestReplay) the compiler fails with ```internal compiler error: NewBulk too big: nbit=22255 count=1028433 nword=696 size=715789368``` (of...
This fixes the compile/debug problem. I need help re-generating pg_catalog.go etc. because when I call sqlc-pg-gen on my machine, the resulting file is a bit shorter and at least one...