kysely-migrate icon indicating copy to clipboard operation
kysely-migrate copied to clipboard

codegen replaces underscores by spaces

Open danielo515 opened this issue 11 months ago • 0 comments

Describe the bug

Hello, thank you for this utility, it makes dealing with kysely migrations much more convenient. I tried the codegen function, and while it worked quite good, the generated names get underscore replaced by spaces, which is incorrect.

To give you an example user_session generates a type named User Session which is obviously not valid typescript.

Link to Minimal Reproducible Example

I don't think is needed, sorry

Steps To Reproduce

Just use any underscore in any table name then try to run a codegen command

Package Version

kysely-migrate 0.0.16

TypeScript Version

5.3.3

Anything else?

No response

Validations

  • [X] Checked there isn't already an issue that exists for the bug you encountered.
  • [X] Added a minimal reproduction.

danielo515 avatar Mar 03 '24 15:03 danielo515