ServerInfoAwareConnection.php 638 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Doctrine\DBAL\Driver;
  3. /**
  4. * Contract for a connection that is able to provide information about the server it is connected to.
  5. */
  6. interface ServerInfoAwareConnection
  7. {
  8. /**
  9. * Returns the version number of the database server connected to.
  10. *
  11. * @return string
  12. */
  13. public function getServerVersion();
  14. /**
  15. * Checks whether a query is required to retrieve the database server version.
  16. *
  17. * @deprecated
  18. *
  19. * @return bool True if a query is required to retrieve the database server version, false otherwise.
  20. */
  21. public function requiresQueryForServerVersion();
  22. }