mysqldumpsplitter
Version, currently 0.4.04 versions
- 0.4.0latestApr 15, 2023
- 0.3.0not indexedApr 15, 2023
- 0.2not indexedApr 15, 2023
- 0.1not indexedApr 15, 2023
github.com/nulty/mysqldumpsplitter
Extract data from MySQL dump files
3 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
mysqldumpsplitter:
github: nulty/mysqldumpsplitter
version: ~> 0.4.0Then run:
shards installshard.yml
- Crystal
>= 1.0.0- License
- MIT
- Author
- Iain McNulty
Dependencies
This version declares no dependencies.
README
mysqldumpsplitter
Inspired by Kedarvj's shell script by the same name.
https://github.com/kedarvj/mysqldumpsplitter
Installation
Build
$ crystal build --release -o bin/mysqldumpsplitter
Usage
Help
bin/mysqldumpsplitter --help
List all the tables in a dump file
bin/mysqldumpsplitter --desc ./path/to/file.sql
Extract a single table from an *.sql dump file to .sql.gz
# Default output file is gzip compressed
bin/mysqldumpsplitter --extract TABLE --match some_table_name ./path/to/file.sql
Decompressed output file
bin/mysqldumpsplitter --extract TABLE --match some_table_name --compression none ./path/to/file.sql
Extract all tables from a dump file
bin/mysqldumpsplitter --extract ALLTABLES ./path/to/file.sql
Development
- Single database file
- [x] Describe tables
- [x] Extract single table
- [x] Extract all tables
- [x] Compression
- [ ] Decompression
- [ ] Estimate table size
- Multiple Databases in one file
- [ ] Extract single database
- [ ] Extract multiple databases
Contributing
- 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
Testing
**Build the project before running tests as some tests depend on the executable
crystal spec
Contributors
- nulty Iain McNulty - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Apr 15, 2023
- Commit
686d007ce1ad- Crystal
>= 1.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nulty/mysqldumpsplitter
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 4