kysely-org / kysely

A type-safe typescript SQL query builder
https://kysely.dev
MIT License
9.81k stars 249 forks source link

Feature request: Feedback possibility during Migration #1030

Closed jbouduin closed 3 weeks ago

jbouduin commented 4 weeks ago

In my (Electron) App, I am Showing a splash screen at startup. During this startup, migrations are performed. While executing, I can not show any progress to the user in case the migrations take some time as migrator.migrateToLatest() is not providing me any feedback.

It would be nice if:

thx for considering my proposals Johan

koskimas commented 3 weeks ago

You can get the executed and new migrations using migrator.getMigrations(). Then you can migrate up/down one migration at a time using migrator.migrateUp() or migrator.migrateDown().