class Illuminate / Database / Connectors / PostgresConnector

PostgresConnector

Extends

Implements

Uses

Properties

protected

$options array

The default PDO connection options.

Default: array

Methods

public

connect ( array $config ) : PDO

Establish a database connection.

Parameters

  • $config array
protected

configureIsolationLevel ( $connection , array $config ) : void

Set the connection transaction isolation level.

Parameters

  • $connection PDO
  • $config array
protected

configureEncoding ( $connection , $config ) : void

Set the connection character set and collation.

Parameters

  • $connection PDO
  • $config array
protected

configureTimezone ( $connection , array $config ) : void

Set the timezone on the connection.

Parameters

  • $connection PDO
  • $config array
protected

configureSearchPath ( $connection , $config ) : void

Set the "search_path" on the database connection.

Parameters

  • $connection PDO
  • $config array
protected

quoteSearchPath ( $searchPath ) : string

Format the search path for the DSN.

Parameters

  • $searchPath array
protected

configureApplicationName ( $connection , $config ) : void

Set the application name on the connection.

Parameters

  • $connection PDO
  • $config array
protected

getDsn ( array $config ) : string

Create a DSN string from a configuration.

Parameters

  • $config array
protected

addSslOptions ( $dsn , array $config ) : string

Add the SSL options to the DSN.

Parameters

  • $dsn string
  • $config array
protected

configureSynchronousCommit ( $connection , array $config ) : void

Configure the synchronous_commit setting.

Parameters

  • $connection PDO
  • $config array