Skip to content
/ db-wipe Public

A simple command-line tool for deleting databases in MySQL.

License

Notifications You must be signed in to change notification settings

kip2/db-wipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

db-wipe

Streamline Your Database Management

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.


Features

  • 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 the database-name.bk.sql dump file ready.

Usage

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.

Installation

Binary distributions are not provided, so you will need to build the application in your own environment. Follow these steps to build:

  1. Clone the repository:
git clone <repository-url>
  1. Move to the project's root path:
cd sqcr
  1. 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.


AUTHOR

kip2

About

A simple command-line tool for deleting databases in MySQL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages