idealogica / db-truncate
Truncates MySql database tables to specified number of rows.
1.0.2
2017-01-01 22:53 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-11-05 22:26:08 UTC
README
db-truncate truncates MySql database tables to specified number of rows. It's useful for developing purposes when you want to reduce database size and preserve its structure.
Installation
db-truncate requires PHP >= 5.3
composer global require idealogica/db-truncate:~1.0.0
Usage
db-truncate [-u username (root)] [-p password] [-h host (localhost)] [-P port] [-S unix socket] [-e comma-separated tables to exclude (changelog)] database [records to keep (500)]
License
db-truncate is licensed under a MIT License.