Add "sslmode" setting for PostgreSQL connection

The commit 586bffa1d7 added support for sslmode in PostgresConnector.php and sslmode has been around since postgres version 9.1 (2011). 

This change makes it possible to specify sslmode from the config file.

Also serves as documentation to other developers so they don't have to
dive deep into the code to figure out that it's posible to set this option.

The posible values for sslmode are:
    disable, allow, prefer, require, verify-ca, verify-full

The default value is "prefer".

http://www.postgresql.org/docs/9.5/static/libpq-ssl.html#LIBPQ-SSL-PROTECTION
This commit is contained in:
Jorge González 2016-05-12 00:59:15 -05:00
parent 6f4c333678
commit 8fc0df14bb
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
],