hubert / avocado-postgres-driver
PostgreSQL driver implementation for Avocado
v1.0.0
2023-02-03 16:28 UTC
Requires
- php: >=8.1
- ext-pdo: *
- ext-pdo_pgsql: *
- hubert/avocado: dev-main
Requires (Dev)
- phpunit/phpunit: 10.0.0
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(); } }