sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.14.0 ### What happened? Reading the docs [here](https://docs.sqlc.dev/en/stable/reference/config.html#per-column-type-overrides) that its possible to override column type. For an in-built type like `time.Time` using the following configuration: ```json { "db_type":...
A simple sublink change to resolve a type generation issue. THIS PR IS NOT THOROUGHLY TESTED AND SHOULD BE REVIEWED WITH A HIGH LEVEL OF SCRUTINY. WHILE IT IS A...
### Version 1.14.0 ### What happened? The example schema, below, illustrates several issues with the MySQL/golang numeric type mappings used to generate models right now: 1. The input domain for...
### What do you want to change? Hi, it would be great to allow add more imports when overriding db types. Let's say we have a `Null` package like below....
### Version 1.14.0 ### What happened? #1485 improved handling of nullable fields with enum type. This is good. But please consider adding a flag to opt out per-field. This is...
While MySQL supports the ANY operator, it does not support arrays. This means the [currently documented way](https://github.com/kyleconroy/sqlc/blob/master/docs/any.md) to pass slices to a query will not work.
### Version Other ### What happened? A previously filed [bug](https://github.com/kyleconroy/sqlc/issues/844). Was found again while attempting to perform an implicit JOIN with mysql. Using version `v1.13.0` ### Relevant log output ```shell...
### Version Other ### What happened? Executing query that takes an array of a custom enum type with pgx/v4 fails with: ``` Cannot encode []main.WidgetType into oid 16393 - []main.WidgetType...
Hi, first of all: thanks for your work on sqlc, it's really amazing! This adds support for the `UNSIGNED` attribute in MySQL. Unfortunately we can only support `NOT NULL` columns...
### What do you want to change? Hello, I have multiple directories that contain .sql files that I would like sqlc to generate code from. Most of these files are...