db-wipe
is a console application that simplifies database management, offering tools for data deletion and restoration.
It efficiently clears or restores your database with minimal hassle.
-
Effortless Data Deletion: Removing data from your database is a breeze with
db-wipe
. For added convenience and safety, you can use the-d
option to create a backup before wiping the data, but this step is optional. -
Seamless Restoration: Easily restore your database with
db-wipe -r
, ensuring you have thedatabase-name.bk.sql
dump file ready.
To delete your database:
db-wipe
If no options are provided, you will be prompted to choose whether to create a dump of the database contents.
To create a dump before deletion:
db-wipe -d
To restore your database:
db-wipe -r
Ensure you have the dump file named database-name.bk.sql
in the current directory for restoration.
Binary distributions are not provided, so you will need to build the application in your own environment. Follow these steps to build:
- Clone the repository:
git clone <repository-url>
- Move to the project's root path:
cd sqcr
- Build the project using
cargo build
:
cargo build --release
This command compiles the project in release mode, creating an optimized executable binary.
After building, the executable file can be found in the target/release directory within your project folder.