Driver.php 1.24 KB
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Driver\DrizzlePDOMySql;

Steve Müller's avatar
Steve Müller committed
5 6
use Doctrine\DBAL\Platforms\DrizzlePlatform;
use Doctrine\DBAL\Schema\DrizzleSchemaManager;
7

8 9
/**
 * Drizzle driver using PDO MySql.
10 11
 *
 * @deprecated
12
 */
13
class Driver extends \Doctrine\DBAL\Driver\PDOMySql\Driver
14 15
{
    /**
16
     * {@inheritdoc}
17
     */
18
    public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
19
    {
20
        return new Connection(
21
            $this->constructPdoDsn($params),
22 23 24 25 26 27
            $username,
            $password,
            $driverOptions
        );
    }

28 29 30 31 32 33 34 35
    /**
     * {@inheritdoc}
     */
    public function createDatabasePlatformForVersion($version)
    {
        return $this->getDatabasePlatform();
    }

36 37
    /**
     * {@inheritdoc}
38 39
     *
     * @return DrizzlePlatform
40
     */
41 42
    public function getDatabasePlatform()
    {
Steve Müller's avatar
Steve Müller committed
43
        return new DrizzlePlatform();
44 45
    }

46 47
    /**
     * {@inheritdoc}
48 49
     *
     * @return DrizzleSchemaManager
50
     */
51 52
    public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
    {
Steve Müller's avatar
Steve Müller committed
53
        return new DrizzleSchemaManager($conn);
54 55
    }

56 57
    /**
     * {@inheritdoc}
58 59
     *
     * @deprecated
60
     */
61 62 63 64
    public function getName()
    {
        return 'drizzle_pdo_mysql';
    }
Benjamin Eberlei's avatar
Benjamin Eberlei committed
65
}