Skip to content

it0a/mysqldump-extend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysqldump-extend

Converts non-extended INSERT INTO queries into the equivalent extended-insert format.

The extended-insert format is much more performant when restoring data.

Build

With leiningen:

git clone https://github.com/it0a/mysqldump-extend && \
cd mysqldump-extend && \
lein bin

Will output a binary at target/mysqldump-extend (Add this to your PATH)

Usage

mysqldump-extend data-non-extended-insert.sql > data-extended-insert.sql

mysqldump-extend data1.sql data2.sql data3.sql > data-extended-insert.sql

mysqldump-extend *.sql > data-extended-insert.sql

mysqldump-extend *.sql | mysql -u user -p database_name

License

Copyright © 2015 it0a

MIT License

About

convert non-extended-insert dumps to extended-insert dumps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published