RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generation was "successful" but type file is empty

deanc opened this issue · comments

Hi,

We have quite a large database, 100+ tables and some of those tables have 100+ fields (don't ask). I ran the codegen and it says it wrote the type file, but when I check it this is the contents:

export type DB = {};

I've ran in full debug mode, and also with --print - but basically there's no errors. It lists all the tables, so it's connecting okay but it's not generating the types. How should I proceed to debug?

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

Same problem here

Hello! Thanks for reporting this. I will probably need some help troubleshooting this, as it works for me. The most basic way to troubleshoot would probably be to try to add some console.logs into the kysely-codegen code.

I can no longer reproduce this with the current release.

Oh wow! I'm not what would've solved it in the latest release, but I'm happy to hear that! I guess I'll close this unless it pops up again.