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-05-30 01:06:06 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();
    }
}