eee
This commit is contained in:
+2
-5
@@ -63,12 +63,8 @@ class ImplodeCommand extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
$waite = new Coroutine\WaitGroup();
|
$waite = new Coroutine\WaitGroup();
|
||||||
|
|
||||||
|
|
||||||
$stream = fopen($path, 'r');
|
$stream = fopen($path, 'r');
|
||||||
if (!$stream) {
|
if ($stream) {
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
while (($line = fgets($stream)) !== false) {
|
while (($line = fgets($stream)) !== false) {
|
||||||
$insert = html_entity_decode($line);
|
$insert = html_entity_decode($line);
|
||||||
if (!str_starts_with(strtoupper($insert), 'INSERT INTO')) {
|
if (!str_starts_with(strtoupper($insert), 'INSERT INTO')) {
|
||||||
@@ -81,6 +77,7 @@ class ImplodeCommand extends Command
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
|
}
|
||||||
$waite->wait();
|
$waite->wait();
|
||||||
|
|
||||||
$output->write('dump data success');
|
$output->write('dump data success');
|
||||||
|
|||||||
Reference in New Issue
Block a user