PostgreSQL avocado driver
PostgreSQL driver
Installation
bash
composer require hubert/avocado-postgres-driverSample usage
php
#[Configuration]
class DataSourceConfiguration {
public function __construct() {}
#[Leaf]
public function dataSource(): DataSource {
return (new DataSourceBuilder())
->server("...")
->databaseName("...")
->username("...")
->password("...")
->port("...")
->charset("...")
->driver(PostgreSQLDriver::class)
->build();
}
}