Attempts to launch the Postgres shell using the current project database configuration.
Add the DatabaseShellConsole
to your ConsoleDependencyProvider
:
<?php
namespace Pyz\Zed\Console;
// ...
use Inviqa\Zed\SprykerDebug\Communication\Console\DatabaseShellConsole;
class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider
{
// ...
protected function getConsoleCommands(Container $container)
{
return [
// ...
new DatabaseShellConsole(),
];
}
}
Connect to the psql
shell:
$ ./vendor/bin/console debug:database:shell
Note that the psql
shell will need to be available.