-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I have found these related issues/pull requests
Relates to #4131
Description
Migrations in a production application take a progressively large amount of time to run, and this is multiplied by the number of tests as the migrations run for each test case. In even a relatively small application with a few dozen migrations this could push individual sqlx::test invocations into taking 60+ seconds each, causing timeouts and test suites that, even when parallelized, can take an inordinately long time to complete.
Prefered solution
Templating the database with schema migrations already run can allow for copying that database structure into the test database, which would be significantly faster when many migrations exist.
Is this a breaking change? Why or why not?
This can be implemented with an opt-out, either as an optional feature or with a command line flag.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request