kristiandupont / kanel

Generate Typescript types from Postgres
https://kristiandupont.github.io/kanel/
MIT License
829 stars 57 forks source link

Add `kyselyCamelCaseHook` #562

Closed alecmev closed 3 weeks ago

alecmev commented 1 month ago

Fixes https://github.com/kristiandupont/kanel/issues/547. I just started using Kysely (and Kanel) myself, so a second set of eyes would be welcome. I didn't build the docs because even if I pin vitepress to 1.0.0-rc.31 it still creates new assets, so I leave it to you 😉

kristiandupont commented 1 month ago

Thank you for contributing, this is great. Before I merge it, one question: how common is this when using Kysely, do you know? Because an alternative might be to have this as an option in the original Kysely hook and not require two..

alecmev commented 4 weeks ago

The best I can do is this 😛

Repositories containing new Kysely<: ~1200 matches
Repositories containing kysely and new CamelCasePlugin: 184 matches

kristiandupont commented 4 weeks ago

Lol ok. Would you mind fixing the eslint error, then I'll merge and publish it

kristiandupont commented 3 weeks ago

This is now published. Thank you for contributing!

alecmev commented 2 weeks ago

Thank you! 👍