Skip to content

javanile/mysql-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javanile/mysql-import

StyleCI Build Status codecov Codacy Badge

The best way to import SQL file on your database.

Get started

$ composer require javanile/mysql-import
$ ./vendor/bin/mysql-import database.sql

Testing

$ docker-compose up -d mysql
$ docker-compose run --rm composer install
$ docker-compose run --rm phpunit tests

TDD

$ docker-compose run --rm phpunit tests --filter ::testLoader
$ docker-compose run --rm phpunit tests --stop-on-failure
docker-compose run --rm php ./bin/mysql-import ./tests/fixtures/database.sql -psecret -utest --do-while