sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.26.0 ### What happened? The type for `id` is detected wrong. ```go type ListTasksParams struct { CreateTime pgtype.Timestamptz CreateTime_2 pgtype.Timestamptz Limit int32 Offset int32 } func (q *Queries)...
### Version 1.26.0 ### What happened? I have a MariaDB table with a nullable JSON column but selecting it when the value is NULL fails to Scan() it into the...
issue #2989, #2400 and probably others This is without https://github.com/sqlc-dev/sqlc/pull/3220 so we can separate which test failures are caused by which PR.
### Version 1.26.0 ### What happened? Getting `relation "x" does not exist` for every query I mention in my `queries` .sql files ### Relevant log output ```shell query.sql:1:1: relation "models"...
Solution for https://github.com/sqlc-dev/sqlc/issues/3187 no support for pgx sorry if the code looks messy at all - open to feedback
### What do you want to change? Currently using SQL databases generally operate in the mode that every query is possible and they create an execution plan at runtime, based...
### What do you want to change? This will fix issues with the single import string not chosing the correct package name Example: `github.com/disgoorg/snowflake/v2.ID` This incorrectly produces `v2.ID` in the...
Fix #129 on MySQL
### Version 1.26.0 ### What happened? Hi, missing columns not being detected when not using parameters ### Relevant log output ```shell none ``` ### Database schema ```sql create table a...
Given the following schema and query: ```sql CREATE TABLE foo ( id text NOT NULL, tags text[] ); -- name: ListFoo :many SELECT * FROM foo; ``` sqlc will generate...