123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace Doctrine\DBAL\Driver\DrizzlePDOMySql;
- use Doctrine\DBAL\Platforms\DrizzlePlatform;
- use Doctrine\DBAL\Schema\DrizzleSchemaManager;
- /**
- * Drizzle driver using PDO MySql.
- */
- class Driver extends \Doctrine\DBAL\Driver\PDOMySql\Driver
- {
- /**
- * {@inheritdoc}
- */
- public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
- {
- return new Connection(
- $this->constructPdoDsn($params),
- $username,
- $password,
- $driverOptions
- );
- }
- /**
- * {@inheritdoc}
- */
- public function createDatabasePlatformForVersion($version)
- {
- return $this->getDatabasePlatform();
- }
- /**
- * {@inheritdoc}
- */
- public function getDatabasePlatform()
- {
- return new DrizzlePlatform();
- }
- /**
- * {@inheritdoc}
- */
- public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
- {
- return new DrizzleSchemaManager($conn);
- }
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'drizzle_pdo_mysql';
- }
- }
|