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