Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow passing kysely instance to defineConfig. #48

Merged
merged 14 commits into from
Jun 28, 2024

Conversation

igalklebanov
Copy link
Member

@igalklebanov igalklebanov commented Jun 25, 2024

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.

@igalklebanov igalklebanov added config Config related enhancement New feature or request labels Jun 25, 2024
@igalklebanov igalklebanov force-pushed the config-pass-kysely-instance branch 4 times, most recently from bd825e4 to 7a318b0 Compare June 28, 2024 22:14
@igalklebanov igalklebanov force-pushed the config-pass-kysely-instance branch from cbd0d17 to 55ab1f9 Compare June 28, 2024 22:49
@igalklebanov igalklebanov marked this pull request as ready for review June 28, 2024 23:13
@igalklebanov igalklebanov merged commit 7d40e6a into main Jun 28, 2024
22 checks passed
@igalklebanov igalklebanov deleted the config-pass-kysely-instance branch June 28, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Config related enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a unique db instance to perform scripts.
1 participant