RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
690 stars 62 forks source link

kysely-bun-worker vs kysely-bun-sqlite #153

Open angelxmoreno opened 2 months ago

angelxmoreno commented 2 months ago

kysely-bun-worker and kysely-bun-sqlite are two different dialects that work with bun:sqlite. However, internally the naming used for the kysely-bun-worker dialect is called bun-sqlite. At first glance the name implies that kysely-bun-sqlite is what is used internally. It took me sometime to figure out why my setup wasn't working because of this confusion.

In my app I am using kysely-bun-sqlite and I am unable to use codegen. I'd like to propose we rename the current dialect from bun-sqlite to bun-sqlite-worker and include the kysely-bun-sqlite dialect to avoid future confusion.

Upvote & Fund

Fund with Polar

njoshi22 commented 1 day ago

Actually just saw the same thing with postgres too - the schema files in both were different (one was updated, one was not).