https://github.com/javanile/mysql-import
🗃 Import SQL file
https://github.com/javanile/mysql-import
mysql mysql-import php sql
Last synced: 3 months ago
JSON representation
🗃 Import SQL file
- Host: GitHub
- URL: https://github.com/javanile/mysql-import
- Owner: javanile
- License: mit
- Created: 2018-11-27T22:02:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T17:21:15.000Z (almost 5 years ago)
- Last Synced: 2025-04-12T21:52:16.511Z (3 months ago)
- Topics: mysql, mysql-import, php, sql
- Language: PHP
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# javanile/mysql-import
[](https://github.styleci.io/repos/159405453)
[](https://travis-ci.org/javanile/mysql-import)
[](https://codecov.io/gh/javanile/mysql-import)
[](https://www.codacy.com/app/francescobianco/mysql-import?utm_source=github.com&utm_medium=referral&utm_content=javanile/mysql-import&utm_campaign=Badge_Grade)The best way to import SQL file on your database.
## Get started
```bash
$ composer require javanile/mysql-import
``````bash
$ ./vendor/bin/mysql-import database.sql
```## Testing
```bash
$ docker-compose up -d mysql
``````bash
$ docker-compose run --rm composer install
``````bash
$ docker-compose run --rm phpunit tests
```## TDD
```bash
$ docker-compose run --rm phpunit tests --filter ::testLoader
``````bash
$ docker-compose run --rm phpunit tests --stop-on-failure
``````bash
docker-compose run --rm php ./bin/mysql-import ./tests/fixtures/database.sql -psecret -utest --do-while
```