sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
This feature allows passing in a slice to an IN clause. Adding the new function sqlc.slice() as opposed to overloading the parsing of "IN (?)" was chosen to guarantee backwards...
I would rather the database implementation didn't leak out into my domain or service layer. I currently have to check for [sql.ErrNoRows when .Scan()ing a single record](https://pkg.go.dev/database/sql?utm_source=gopls#Row.Scan) and would rather...
This is a proposed fix for https://github.com/kyleconroy/sqlc/issues/1574. I am unsure if this change breaks any tests because I don't have a correctly setup postgres instance to generate `pg_catalog` correctly with...
### Version 1.15.0 ### What happened? In SQLite, when a column is designated with an explicit NULL modifier, such as `id INTEGER NULL` or `id TEXT NULL` then an error...
pgx/v4 supports passing and scanning into pointer types for nullable columns instead of using the standard library `Null` representation, which is super handy if you wind up interfacing a lot...
## What do you want to change? _This proposal is a work in progress_ v5.0.0 of jackc/pgx is coming in September (https://github.com/jackc/pgx/issues/1273). The [changes are significant](https://github.com/jackc/pgx/blob/v5-dev/CHANGELOG.md). I think it's a...
### Version 1.13.0 ### What happened? ``` create table if not exists ebay_search_result ( id int not null primary key generated always as identity, title varchar(2000) not null, epid varchar(100)...
Fixes #1581 . I just added `citext` to the switch so that it would resolve to `string`, although this might not be the best solution. I looked around, and it...
Related to: #1498. I'm not sure about the approach I took, so just let me know if im solving it wrongly
Hi, in our app we have migrations in different structure like this 12321_folder/{up.sql, down.sql} and current approach doesn't really work for us. Current change is kind of breaking change but...