Inspired by Kedarvj's shell script by the same name.
https://github.com/kedarvj/mysqldumpsplitter
$ crystal build --release -o bin/mysqldumpsplitter
bin/mysqldumpsplitter --help
bin/mysqldumpsplitter --desc ./path/to/file.sql
# Default output file is gzip compressed
bin/mysqldumpsplitter --extract TABLE --match some_table_name ./path/to/file.sql
bin/mysqldumpsplitter --extract TABLE --match some_table_name --compression none ./path/to/file.sql
bin/mysqldumpsplitter --extract ALLTABLES ./path/to/file.sql
- Single database file
- Describe tables
- Extract single table
- Extract all tables
- Compression
- Decompression
- Estimate table size
- Multiple Databases in one file
- Extract single database
- Extract multiple databases
- Fork it (https://github.com/nulty/mysqldumpsplitter/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
**Build the project before running tests as some tests depend on the executable
crystal spec
- nulty Iain McNulty - creator, maintainer