Replies: 1 comment 1 reply
-
To state that very clearly here: Diesel cli does not just override random files, but only that file that is explicitly configured via CLI arguments or the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The diesel cli just overwrote a big uncommited
src/schema.rs
file in my codebase that contained graphql-related stuff (nothing to do with the database). It would've been very useful to have some kind of confirmation prompt if diesel detects that the file isn't formatted like its usualschema.rs
files with the macro call as a first statement. This would prevent other data losses.edit: fortunately, IntelliJ/CLion keeps a little revision history for every file and I was able to recover its content
Beta Was this translation helpful? Give feedback.
All reactions