You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go type generation emits invalid struct tags for backtick column names #1125
PostgreSQL quoted identifiers can contain backticks. The Go type generator currently embeds column names directly in a raw struct-tag literal, so a column such as badtagterminates the literal early and produces Go source thatgofmt` cannot parse.
Reproduction
Generate Go types for a table containing a column whose name includes a backtick, then pipe the generated source to gofmt. It fails with syntax errors including expected semicolon and string literal not terminated.
Expected behavior
The generated struct tag should preserve the PostgreSQL column name while remaining valid Go source. Ordinary column names should retain their current output.
Activity
fix(postgrest-typegen): escape Go struct tags for pathological column…