javanile/mysql-import

Import SQL file from command-line

0.0.16 2020-09-21 17:12 UTC

This package is auto-updated.

Last update: 2024-12-22 03:39:50 UTC


README

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