Another PgSQL update

This commit is contained in:
Pinga 2024-01-05 22:11:06 +02:00
parent 0cec56475a
commit c256cd9fc9
7 changed files with 173 additions and 171 deletions

View file

@ -13,7 +13,7 @@ elseif (config('default') == 'sqlite') {
}
// PostgreSQL Connection
elseif (config('default') == 'pgsql') {
$pdo = new \PDO($config['pgsql']['driver'].':dbname='.$config['pgsql']['database'].';host='.$config['pgsql']['host'].';charset='.$config['pgsql']['charset'].'', $config['pgsql']['username'], $config['pgsql']['password']);
$pdo = new \PDO($config['pgsql']['driver'].':dbname='.$config['pgsql']['database'].';host='.$config['pgsql']['host'].';', $config['pgsql']['username'], $config['pgsql']['password']);
$db = \Pinga\Db\PdoDatabase::fromPdo($pdo);
}
// SQL Server Connection