mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
25 lines
649 B
PHP
Executable File
25 lines
649 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SSH\Services\Database;
|
|
|
|
use App\Models\BackupFile;
|
|
|
|
interface Database
|
|
{
|
|
public function create(string $name): 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;
|
|
}
|