How can I set in config.php for connecting postgresql with " options='--client_encoding=UTF8;--application_name=pcstu;' "

just like this in orignal php:

<?php $dbh = new PDO("pgsql:dbname=test; host=localhost; user=postgres; password=123456; options='--client_encoding=UTF8;--application_name=pcstu;' "); ?>



38.3k

Hi,

maybe with this: passing aditionnal options to the database connection constructor: https://docs.phalconphp.com/en/3.3/db-layer#options