mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
declare(strict_types = 1);
|
|
|
|
namespace phpOMS\DataStorage\Database;
|
|
|
|
use phpOMS\Stdlib\Base\Enum;
|
|
|
|
/**
|
|
* Database status enum.
|
|
*
|
|
* Possible database connection status
|
|
*
|
|
* @category Framework
|
|
* @package phpOMS\DataStorage\Database
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
abstract class DatabaseStatus extends Enum
|
|
{
|
|
/* public */ const OK = 0; /* Database connection successful */
|
|
/* public */ const MISSING_DATABASE = 1; /* Couldn't find database */
|
|
/* public */ const MISSING_TABLE = 2; /* One of the core tables couldn't be found */
|
|
/* public */ const FAILURE = 3; /* Unknown failure */
|
|
/* public */ const READONLY = 4; /* Database connection is in readonly (but ok) */
|
|
/* public */ const CLOSED = 5; /* Database connection closed */
|
|
}
|