提交代码
This commit is contained in:
23
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php
vendored
Normal file
23
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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.
|
||||
*
|
||||
* @return bool True if a query is required to retrieve the database server version, false otherwise.
|
||||
*/
|
||||
public function requiresQueryForServerVersion();
|
||||
}
|
||||
Reference in New Issue
Block a user