Skip to content

Commit

Permalink
**Zesk Kernel**: zesk database-dump adding non-blocking to database…
Browse files Browse the repository at this point in the history
… dump command
  • Loading branch information
razzed committed Jul 9, 2019
1 parent 90f6145 commit 92caf4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/database/dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Command_Database_Dump extends Command_Base {
"target" => "string",
"compress" => "boolean",
"no-compress" => "boolean",
'non-blocking' => 'boolean',
"dir" => "string",
"arg-prefix" => "string",
"arg-suffix" => "string",
Expand All @@ -39,6 +40,7 @@ class Command_Database_Dump extends Command_Base {
"compress" => "Explicitly compress the dump using gzip (new option)",
"no-compress" => "(deprecated) Prevent compression of the archive",
"dir" => "Place the file in this directory",
'non-blocking' => 'Pass the non-blocking option to the database dump command',
"arg-prefix" => "Pass options to prefix command-line",
"arg-suffix" => "Pass options to suffix command-line",
"tables" => "List of tables to dump",
Expand All @@ -60,6 +62,7 @@ public function run() {
list($binary, $args) = $db->shell_command(array(
"sql-dump-command" => true,
"tables" => $this->option_list("tables"),
'non-blocking' => $this->option_bool('non-blocking'),
));
if ($this->has_option("arg-prefix")) {
$args = array_merge($this->option_list('arg-prefix'), $args);
Expand Down

0 comments on commit 92caf4a

Please sign in to comment.