javanile / mysql-import
Import SQL file from command-line
Installs: 2 840
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 2
Requires
- ext-mysqli: *
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-10-22 03:24:34 UTC
README
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