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
Commit 74e1a5e
Browse filesBrowse the repository at this point in the historyBrowse files
fix: Generate valid code for column names that are not TS identifiers
Columns like "invalid-name" produced interface properties, object
literal keys, and args property accesses that were not valid
TypeScript, so the generated file failed to parse.
Property names are now emitted as quoted string keys and argument
access falls back to element access (args["invalid-name"]) whenever the
mapped name is not a valid identifier, via new propertyKey/
propertyAccess helpers shared by all four drivers.
Verified with a schema containing a hyphenated column used in both a
SELECT row and an INSERT parameter; output compiles under tsc --strict.
Output for schemas with well-formed names is unchanged (all examples
regenerate byte-for-byte identical).
Fixes#70.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GFyrFwpJC2eivaBRyNBJqv
0 commit comments