Skip to content

codegen replaces underscores by spaces #23

Open
@danielo515

Description

@danielo515

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions