mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
55 lines
1.2 KiB
PHP
Executable File
55 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Doctrine\DBAL\Driver;
|
|
|
|
use Doctrine\DBAL\Connection;
|
|
use Doctrine\DBAL\Driver;
|
|
use Doctrine\DBAL\Driver\DriverException as TheDriverException;
|
|
use Doctrine\DBAL\Exception\DriverException;
|
|
use Doctrine\DBAL\Platforms\DB2Platform;
|
|
use Doctrine\DBAL\Schema\DB2SchemaManager;
|
|
|
|
/**
|
|
* Abstract base implementation of the {@link Driver} interface for IBM DB2 based drivers.
|
|
*/
|
|
abstract class AbstractDB2Driver implements Driver
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @deprecated Use Connection::getDatabase() instead.
|
|
*/
|
|
public function getDatabase(Connection $conn)
|
|
{
|
|
$params = $conn->getParams();
|
|
|
|
return $params['dbname'];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getDatabasePlatform()
|
|
{
|
|
return new DB2Platform();
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getSchemaManager(Connection $conn)
|
|
{
|
|
return new DB2SchemaManager($conn);
|
|
}
|
|
|
|
/**
|
|
* @param string $message
|
|
*
|
|
* @return DriverException
|
|
*/
|
|
public function convertException($message, TheDriverException $exception)
|
|
{
|
|
return new DriverException($message, $exception);
|
|
}
|
|
}
|