mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
26 lines
793 B
PHP
26 lines
793 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Pterodactyl\Contracts\Databases;
|
||
|
|
|
||
|
|
use Pterodactyl\Exceptions\DisplayException;
|
||
|
|
use Pterodactyl\Exceptions\Service\Database\DatabaseClientFeatureNotEnabledException;
|
||
|
|
use Pterodactyl\Exceptions\Service\Database\NoSuitableDatabaseHostException;
|
||
|
|
use Pterodactyl\Exceptions\Service\Database\TooManyDatabasesException;
|
||
|
|
use Pterodactyl\Models\Database;
|
||
|
|
use Pterodactyl\Models\Server;
|
||
|
|
use Throwable;
|
||
|
|
|
||
|
|
interface DeploysServerDatabases
|
||
|
|
{
|
||
|
|
/** @param DatabaseDeploymentData $data
|
||
|
|
* @throws Throwable
|
||
|
|
* @throws TooManyDatabasesException
|
||
|
|
* @throws DatabaseClientFeatureNotEnabledException
|
||
|
|
* @throws NoSuitableDatabaseHostException
|
||
|
|
* @throws DisplayException
|
||
|
|
*/
|
||
|
|
public function deploy(Server $server, array $data): Database;
|
||
|
|
}
|