https://github.com/luzrain/dbal-amphp-postgres
Async Doctrine DBAL driver for AMPHP Postgres client
https://github.com/luzrain/dbal-amphp-postgres
amphp async doctrine doctrine-dbal doctrine-orm
Last synced: 5 months ago
JSON representation
Async Doctrine DBAL driver for AMPHP Postgres client
- Host: GitHub
- URL: https://github.com/luzrain/dbal-amphp-postgres
- Owner: luzrain
- License: mit
- Created: 2025-08-02T09:05:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-02T11:34:13.000Z (6 months ago)
- Last Synced: 2025-08-02T11:53:32.431Z (6 months ago)
- Topics: amphp, async, doctrine, doctrine-dbal, doctrine-orm
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Async Doctrine DBAL driver for AMPHP Postgres client

Async Doctrine DBAL driver for AMPHP Postgres client
## Installation
``` bash
$ composer require luzrain/dbal-amphp-postgres
```
#### Example of usage
```php
use Doctrine\DBAL\DriverManager;
use Luzrain\DbalDriver\AmphpPostgres\AsyncConection;
use Luzrain\DbalDriver\AmphpPostgres\AsyncDriver;
$connectionParams = [
'dbname' => 'mydb',
'user' => 'user',
'password' => 'secret',
'host' => 'localhost',
'driverClass' => AsyncDriver::class,
'wrapperClass' => AsyncConection::class,
'driverOptions' => [
'max_connections' => 100,
'idle_timeout' => 60,
],
];
$conn = DriverManager::getConnection($connectionParams);
```