vendor/hsi/firebird/src/DBAL/Driver/AbstractFirebirdDriver.php line 36

Open in your IDE?
  1. <?php
  2. namespace Hsi\Firebird\DBAL\Driver;
  3. use Doctrine\DBAL\Connection;
  4. use Doctrine\DBAL\Driver;
  5. use Doctrine\DBAL\Driver\ExceptionConverterDriver;
  6. use Doctrine\DBAL\Driver\DriverException;
  7. use Doctrine\DBAL\Exception;
  8. use Hsi\Firebird\DBAL\Platform\FirebirdPlatform;
  9. use Hsi\Firebird\DBAL\Schema\FirebirdSchemaManager;
  10. abstract class AbstractFirebirdDriver implements Driver, ExceptionConverterDriver
  11. {
  12.     /**
  13.      * {@inheritdoc}
  14.      */
  15.     public function convertException($message, DriverException $exception)
  16.     {
  17.         return new Exception\DriverException($message, $exception);
  18.     }
  19.     /**
  20.      * {@inheritdoc}
  21.      */
  22.     public function getDatabase(Connection $conn)
  23.     {
  24.         $params = $conn->getParams();
  25.         return $params['dbname'] ?? '';
  26.     }
  27.     /**
  28.      * {@inheritdoc}
  29.      */
  30.     public function getDatabasePlatform()
  31.     {
  32.         return new FirebirdPlatform();
  33.     }
  34.     /**
  35.      * {@inheritdoc}
  36.      */
  37.     public function getSchemaManager(Connection $conn)
  38.     {
  39.         return new FirebirdSchemaManager($conn);
  40.     }
  41. }