Dry run! (sort of)
We've added a new --dry
flag to the CLI.
This means you can now see what queries your config file will run, to check the conditions are correct, it also gives you a table representation of your dataset to check it looks like what you expected.
e.g
🧠 forget-db :: 2 rows found to process.
🧠 forget-db :: Query run... select `users`.`id`, `users`.`email`, `users`.`password` from `users`
+----+-------------------------+------------------+
| id | email | password |
+----+-------------------------+------------------+
| 1 | [email protected] | 371817583255573 |
| 2 | [email protected] | 6011543368953199 |
+----+-------------------------+------------------+
--
What it doesn't do is
- Give you what the data will look like AFTER you run it
- Give you the update commands it will run
Warning - When doing a dry run, remember that it will output to your terminal, so if you are exposing sensitive data make sure you're taking the correct precautions!
--
This is primarily designed for you to check that your conditions all work as expected before running it on your data set.
You can use it similarly to forget-db forget ./config.yml --dry
this will put it into dry run mode, you can see more information within the readme https://github.com/OwenMelbz/forget-db#dry-run