Extract data from MySQL dump files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
src
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
shard.yml

README.md

mysqldumpsplitter

Inspired by Kedarvj's shell script by the same name.

https://github.com/kedarvj/mysqldumpsplitter

Installation

Add this to your application's shard.yml:

dependencies:
  mysqldumpsplitter:
    github: nulty/mysqldumpsplitter

Usage

require "mysqldumpsplitter"

Build

$ crystal build --release -o bin/mysqldumpsplitter

Development

**Build the project before running tests as some tests depend on the executable

  • Single database file
    • Describe tables
    • Extract single table
    • Extract all tables
    • Compression
    • Estimate table size
  • Multiple Databases in one file
    • Extract single database
    • Extract multiple databases

Contributing

  1. Fork it (https://github.com/nulty/mysqldumpsplitter/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • nulty Iain McNulty - creator, maintainer