PostgresDriver.php
TLDR
This file contains the PostgresDriver
class, which extends the AbstractPostgreSQLDriver
class and implements functionality for handling PostgreSQL database connections. It also includes the getName
method that returns the driver name.
Classes
PostgresDriver
The PostgresDriver
class extends the AbstractPostgreSQLDriver
class and implements the necessary functionality for handling PostgreSQL database connections. It uses the ConnectsToDatabase
trait.
Methods
getName
This method is inherited from the AbstractPostgreSQLDriver
class and returns the name of the driver. In this case, it returns the string 'pdo_pgsql'
.
<?php
namespace Illuminate\Database\PDO;
use Doctrine\DBAL\Driver\AbstractPostgreSQLDriver;
use Illuminate\Database\PDO\Concerns\ConnectsToDatabase;
class PostgresDriver extends AbstractPostgreSQLDriver
{
use ConnectsToDatabase;
/**
* {@inheritdoc}
*/
public function getName()
{
return 'pdo_pgsql';
}
}