lithium\data\source\database\adapter\PostgreSql::__construct()

public method

Constructor. Constructs the PostgreSQL adapter and sets the default port to 5432.

Parameters

  • array $config

    The available configuration options are the following. Further options are inherited from the parent classes. Typically, these parameters are set in Connections::add(), when adding the adapter to the list of active connections.

    • 'host' string: Defaults to 'localhost:5432'.
    • 'schema' string: The name of the database schema to use. Defaults to 'public'.
    • 'timezone' string: The timezone to use. Defaults to 'null'

Returns

void

Source

	public function __construct(array $config = array()) {
		$defaults = array(
			'host' => 'localhost:5432',
			'schema' => 'public',
			'timezone' => null
		);
		parent::__construct($config + $defaults);
	}