Skip to content

Commit 06cd8a9

Browse files
author
Gaetano Giunta
committed
comments and empty files
1 parent 9cc0cef commit 06cd8a9

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

app/src/Command/DatabaseManagingCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ protected function addCommonOptions()
4040
->addOption('output-type', null, InputOption::VALUE_REQUIRED, 'The format for the output: json, php, text or yml', self::DEFAULT_OUTPUT_FORMAT)
4141
->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'The maximum time to wait for execution (secs)', self::DEFAULT_PROCESS_TIMEOUT)
4242
->addOption('max-parallel', null, InputOption::VALUE_REQUIRED, 'The maximum number of processes to run in parallel', self::DEFAULT_PARALLEL_PROCESSES)
43-
->addOption('dont-force-enabled-sigchild', null, InputOption::VALUE_NONE, "When using a separate php process to run each sql command, do not force Symfony to believe that php was compiled with --enable-sigchild option");
43+
->addOption('dont-force-enabled-sigchild', null, InputOption::VALUE_NONE, "When using a separate php process to run each sql command, do not force Symfony to believe that php was compiled with --enable-sigchild option")
44+
->addOption('instances', null, InputOption::VALUE_REQUIRED, 'Filter the database servers to run this command against. Usage of * and ? wildcards is allowed. To see all instances available, use `db3v4l:instance:list`', null)
45+
;
4446
}
4547

4648
/**
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Db3v4l\Core\SqlExecutor\Forked;
4+
5+
use Db3v4l\API\Interfaces\ForkedCommandExecutor;
6+
use Db3v4l\Util\Process;
7+
8+
class PDO extends ForkedExecutor implements ForkedCommandExecutor
9+
{
10+
/**
11+
* @param string|string[] $sql
12+
* @return Process
13+
*/
14+
public function getExecuteCommandProcess($sql)
15+
{
16+
throw new \RuntimeException('TO BE IMPLEMENTED');
17+
}
18+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Db3v4l\Core\SqlExecutor\InProcess;
4+
5+
use Db3v4l\Core\SqlExecutor\BaseExecutor;
6+
7+
class PDO extends BaseExecutor
8+
{
9+
10+
}

0 commit comments

Comments
 (0)