$self->_get_data_from_csv($file, $format);
}
else {
if ($format eq 'json') {
require JSON;
my $content = do {
local $/;
open my
$fh, '<', $file or die $!;
<$fh>;
};
$rows = JSON::decode_json($content);
}
elsif ($format =~ /ya?ml/) {
require YAML::Tiny;
=item C<table:Str>
table name of database.
=item C<format:Str>
data format. "CSV", "YAML" and "JSON" are available.
=item C<update:Bool>
Using C<< ON DUPLICATE KEY UPDATE >> or not. Default value