Doctrine DBAL MySQL driver for PDO-based database connections
// Source: https://github.com/doctrine/dbal | License: MIT | Copyright 2006-2018 Doctrine Project
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Driver\PDO\MySQL;
use Doctrine\DBAL\Driver\AbstractMySQLDriver;
use Doctrine\DBAL\Driver\PDO\Connection;
use Doctrine\DBAL\Driver\PDO\Exception;
use Doctrine\DBAL\Driver\PDO\Exception\InvalidConfiguration;
use Doctrine\DBAL\Driver\PDO\PDOConnect;
use PDO;
use PDOException;
use SensitiveParameter;
use function is_string;
final class Driver extends AbstractMySQLDriver
{
use PDOConnect;
/**
* {@inheritDoc}
*/
public function connect(
#[SensitiveParameter]
array $params,
): Connection {
$driverOptions = $params['driverOption
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key