RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate multiple schemas on the same file?

thelinuxlich opened this issue · comments

Is it possible to codegen from multiple schemas in the DB at once? (MySQL)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Not sure if that is what you mean, but you get kysely-codegen to prefix all table names with their respective schema by running the tool with --schema not-existing-schema.
It's abusing the flag a bit, but it's good enough for my use case.