Skip to content

PostgreSQL avocado driver

PostgreSQL driver

Installation

bash
composer require hubert/avocado-postgres-driver

Sample 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();
    }
}