Shell command to import / export database table records from / to tsv filles.
You can install this plugin into your CakePHP application using composer.
- Add
"hasegawa-tomoki/tsvio": "*"
torequire
section of composer.json. - Run
composer update
. - Add
Plugin::load('Tsvio');
to bottom of your bootstrap.php. bin/cake tsvio import <table>
orbin/cake tsbio export <table>
.
import
truncates all records.- You can use
all
inimport
command as `````.MIT licensed. A part of TsvIO code is from cakephp/bake.