mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 19:22:19 +00:00
* SyncDatabases * Collation on Create inc WordPress * Refactored Enum * Resolve sync issue * Fix for PostgreSQL * pint * reversed enum * style adjustments * add unit tests * style * fix tests * more tests --------- Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
29 lines
796 B
PHP
Executable File
29 lines
796 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SSH\Services\Database;
|
|
|
|
use App\Models\BackupFile;
|
|
|
|
interface Database
|
|
{
|
|
public function create(string $name, string $charset, string $collation): void;
|
|
|
|
public function delete(string $name): void;
|
|
|
|
public function createUser(string $username, string $password, string $host): void;
|
|
|
|
public function deleteUser(string $username, string $host): void;
|
|
|
|
public function link(string $username, string $host, array $databases): void;
|
|
|
|
public function unlink(string $username, string $host): void;
|
|
|
|
public function runBackup(BackupFile $backupFile): void;
|
|
|
|
public function restoreBackup(BackupFile $backupFile, string $database): void;
|
|
|
|
public function updateCharsets(): void;
|
|
|
|
public function syncDatabases(bool $createNew = true): void;
|
|
}
|