mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
37 lines
656 B
PHP
37 lines
656 B
PHP
<?php
|
|
|
|
namespace App\Services\Database;
|
|
|
|
class Postgresql extends AbstractDatabase
|
|
{
|
|
protected array $systemDbs = ['template0', 'template1', 'postgres'];
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected array $systemUsers = ['postgres'];
|
|
|
|
protected string $defaultCharset = 'UTF8';
|
|
|
|
protected int $headerLines = 2;
|
|
|
|
protected string $separator = '|';
|
|
|
|
protected bool $removeLastRow = true;
|
|
|
|
public static function id(): string
|
|
{
|
|
return 'postgresql';
|
|
}
|
|
|
|
public static function type(): string
|
|
{
|
|
return 'database';
|
|
}
|
|
|
|
public function unit(): string
|
|
{
|
|
return 'postgresql';
|
|
}
|
|
}
|