/** * @ignore */ public function __construct(array $uConfig) { parent::__construct($uConfig); $this->host = $uConfig['host']; $this->database = $uConfig['database']; $this->username = $uConfig['username']; $this->password = $uConfig['password']; $this->persistent = isset($uConfig['persistent']) && $uConfig['persistent'] === true; }
/** * @ignore */ public function __construct(array $uConfig) { parent::__construct($uConfig); $this->pdoString = $uConfig['pdoString']; $this->username = $uConfig['username']; $this->password = $uConfig['password']; if (isset($uConfig['overrideCase'])) { $this->overrideCase = $uConfig['overrideCase']; } $this->persistent = isset($uConfig['persistent']) && $uConfig['persistent'] === true; $this->fetchMode = \PDO::FETCH_ASSOC; $tConnectionString = explode(':', $this->pdoString, 2); $this->standard = $tConnectionString[0]; if ($this->standard === 'pgsql') { $this->explainOnModifies = true; } }