<?php
    return [
        'class'     => 'yii\db\Connection',
        'dsn'       => '',
        'username'  => '',
        'password'  => '',
        'charset'   => 'utf8',
        'schemaMap' => [
            'pgsql' => [
                'class'         => 'yii\db\pgsql\Schema',
                'defaultSchema' => '',
            ],
        ],
    ];
    //DSN: pgsql:host=127.0.0.1;port=5432;dbname=name