-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I have found these related issues/pull requests
None found
Description
The problem I have is the following: I want to have the cached data for local and CI builds, such that they do not need to have access to the database. However, when I change the database schema, I don't want to forget to update the files if there was a breaking change. So I want to re-run the cached files and make sure that the database still returns the same data.
The alternatives would otherwise be:
- Needing a database access for e.g. the unit tests
- Recompiling / rechecking the whole application for the check
- Copying the target directory from the build environment to the test environment
Prefered solution
I would like to have a sub-command in sqlx e.g. sqlx verify, that takes all the cached files .sqlx/*.json, re-runs the query and if the result miss-matches, throws an error.
Is this a breaking change? Why or why not?
This is not a breaking change.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request