sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.54k stars 809 forks source link

Apply go_struct_tag to type overrides #3564

Open eduardomosko opened 2 months ago

eduardomosko commented 2 months ago

Alternative version of #3287 in what I believe is a less "hacky" way.

It respects the precedence of "column" overrides over "db_type" overrides, since the former is more specific.

closes #3563