Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class '\CodeIgniter\Database\postgre\Connection' not found #1038

Closed
ngangchill opened this issue May 20, 2018 · 2 comments
Closed

Class '\CodeIgniter\Database\postgre\Connection' not found #1038

ngangchill opened this issue May 20, 2018 · 2 comments

Comments

@ngangchill
Copy link

im trying to connect postgress database but failed.

Controller:

$db = \Config\Database::connect();
$query = $db->table('articles')->get();
$article = $query->getResult();

var_dump($article);

Database Config:

.'DSN'          => 'postgres://zkcisbrxxxxxxxxxxxxxxxxxxxxxxxd7d@ec2-44-83.compute-1.amazonaws.com:5432/d80mb0dfcjke9j',
	'hostname'     => 'xxxxxxxxxx.compute-1.amazonaws.com',
	'username'     => 'xxxxxxxxxx',
	'password'     => 'bf112fa4501647xxxxxxxxxxxxx06d7d49ebba4735e8063e4db83aa1d7d',
	'database'     => 'db0xxxxxxxxdfcjke9j',
	'DBDriver'     => 'postgre',
 ........ 'port'         => 5432
.

ci4png

@gabriel-pnhr
Copy link
Contributor

Hi,
'DBDriver' => 'Postgre'

@jim-parry
Copy link
Contributor

Support questions should be askled on our forum, thanks. We use github for bugs & work packages.
Either way, the answer was provided above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants