Pipe improvements, misc cleanup
* Pipe improvements; better filter code, pipeline etc. * Moved commands in PDO plugin to dedicated namespace
This commit is contained in:
@ -30,6 +30,7 @@ class PdoShell {
|
||||
private ?array $lastQuery = null;
|
||||
|
||||
#[EnumSetting('output', [ 'table', 'vertical', 'dump' ])]
|
||||
#[EnumSetting('table.style', [ 'box', 'compact', 'borderless' ])]
|
||||
private array $defaultOptions = [
|
||||
'output' => 'table',
|
||||
'table.maxwidth' => 40,
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace SparkPlug\Com\Noccy\Pdo;
|
||||
namespace SparkPlug\Com\Noccy\Pdo\Commands;
|
||||
|
||||
use Spark\Commands\Command;
|
||||
use Symfony\Component\Console\Helper\Table;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace SparkPlug\Com\Noccy\Pdo;
|
||||
namespace SparkPlug\Com\Noccy\Pdo\Commands;
|
||||
|
||||
use Spark\Commands\Command;
|
||||
use Symfony\Component\Console\Helper\Table;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace SparkPlug\Com\Noccy\Pdo;
|
||||
namespace SparkPlug\Com\Noccy\Pdo\Commands;
|
||||
|
||||
use Spark\Commands\Command;
|
||||
use Symfony\Component\Console\Helper\Table;
|
@ -7,8 +7,8 @@ use SparkPlug;
|
||||
class PdoPlugin extends SparkPlug {
|
||||
public function load()
|
||||
{
|
||||
register_command(new PdoQueryCommand());
|
||||
register_command(new PdoExecCommand());
|
||||
register_command(new Commands\PdoQueryCommand());
|
||||
register_command(new Commands\PdoExecCommand());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user