hubert/avocado-postgres-driver

PostgreSQL driver implementation for Avocado

v1.0.0 2023-02-03 16:28 UTC

This package is auto-updated.

Last update: 2024-10-30 01:59:44 UTC


README

Based on PDO, PDO_PSQL and Avocado 8.0.0-dev.

Use example

#[Configuration]
class DataSourceConfiguration {

    public function __construct(){}

    #[Leaf]
    public function dataSource(): DataSource {
        return (new DataSourceBuilder())
            ->server("...")
            ->databaseName("...")
            ->username("...")
            ->password("...")
            ->port("...")
            ->charset("...")
            ->driver(PostgreSQLDriver::class)
            ->build();
    }
}