lithium\data\source\database\adapter\PostgreSql::__construct()
Overrides
lithium\core\Object::__construct()
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
voidSource
public function __construct(array $config = array()) {
$defaults = array(
'host' => 'localhost:5432',
'schema' => 'public',
'timezone' => null
);
parent::__construct($config + $defaults);
}