kysely-org / kysely-ctl

Command-line tool for Kysely
MIT License
46 stars 1 forks source link

allow passing `kysely` instance to `defineConfig`. #48

Closed igalklebanov closed 1 week ago

igalklebanov commented 2 weeks ago

closes #47.

This PR makes it possible to pass a kysely instance, instead of dialect name/instance, when needed. This PR introduces typecheck tests using vitest to ensure defineConfig inputs types don't break. - when needed is also made clearer. A kysely/dialect is needed anytime both a seeder and a migrator are not passed.