ServerInfoAwareConnection.php 397 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

namespace Doctrine\DBAL\Driver;

/**
 * Contract for a connection that is able to provide information about the server it is connected to.
 */
8
interface ServerInfoAwareConnection extends Connection
9 10 11 12 13
{
    /**
     * Returns the version number of the database server connected to.
     *
     * @return string
14 15
     *
     * @throws Exception
16 17 18
     */
    public function getServerVersion();
}