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
Structs names no have non-camel case attribute names #1319
I'm not sure what happened, maybe because of the update to v1.11 but previously my sqlc generated structs used to have camel case attribute names like:
type SomeStruct struct {
ThisShouldBeCamelCase string
}
but now, whenever I do sqlc generate, it generates the struct name in a non-camel case fashion
type SomeStruct struct {
Thisshouldbecamelcase string
}
Relevant log output
No response
Database schema
-- Example queries for sqlcCREATETABLEauthors (
nameForBook textNOT NULL
);
Activity
kyleconroy commentedon Nov 30, 2021
I think this was caused by #1216
macfisherman commentedon Dec 15, 2021
I am seeing this as well.
zoranembroker commentedon Feb 21, 2022
Same problem I am having with Postgres !
skabbes commentedon Apr 2, 2022
@zoranembroker make sure to "double quote" your columns on postgres in order to use mixed case.
mportugal commentedon Sep 30, 2022
Is there any update regarding this?