PHP Class TeamTNT\TNTSearch\Connectors\PostgresConnector

Inheritance: extends Connector, implements TeamTNT\TNTSearch\Connectors\ConnectorInterface
Datei anzeigen Open project: teamtnt/tntsearch

Protected Properties

Property Type Description
$options array The default PDO connection options.

Public Methods

Method Description
connect ( array $config ) : PDO Establish a database connection.

Protected Methods

Method Description
formatSchema ( array | string $schema ) : string Format the schema for the DSN.
getDsn ( array $config ) : string Create a DSN string from a configuration.

Method Details

connect() public method

Establish a database connection.
public connect ( array $config ) : PDO
$config array
return PDO

formatSchema() protected method

Format the schema for the DSN.
protected formatSchema ( array | string $schema ) : string
$schema array | string
return string

getDsn() protected method

Create a DSN string from a configuration.
protected getDsn ( array $config ) : string
$config array
return string

Property Details

$options protected_oe property

The default PDO connection options.
protected array $options
return array