mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
26 lines
638 B
PHP
26 lines
638 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\DBAL\Driver;
|
||
|
|
||
|
/**
|
||
|
* Contract for a connection that is able to provide information about the server it is connected to.
|
||
|
*/
|
||
|
interface ServerInfoAwareConnection
|
||
|
{
|
||
|
/**
|
||
|
* Returns the version number of the database server connected to.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getServerVersion();
|
||
|
|
||
|
/**
|
||
|
* Checks whether a query is required to retrieve the database server version.
|
||
|
*
|
||
|
* @deprecated
|
||
|
*
|
||
|
* @return bool True if a query is required to retrieve the database server version, false otherwise.
|
||
|
*/
|
||
|
public function requiresQueryForServerVersion();
|
||
|
}
|