mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
36
app/Services/Database/Postgresql.php
Normal file
36
app/Services/Database/Postgresql.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user