idealogica/db-truncate

Truncates MySql database tables to specified number of rows.

Installs: 58

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/idealogica/db-truncate

1.0.2 2017-01-01 22:53 UTC

This package is auto-updated.

Last update: 2025-10-06 01:06:17 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.