From ef831a0d8e4022ebde041352752f0e82d017db52 Mon Sep 17 00:00:00 2001 From: Steffen Beisenherz Date: Sun, 23 Oct 2022 16:28:22 +0000 Subject: [PATCH] chore: Add PostgresContainer to README --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index f4ade8f..015f01b 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,28 @@ $pdo = new \PDO( // Do something with pdo ``` +### PostgreSQL + +```php +withPostgresDatabase('database'); +$container->withPostgresUser('username'); + +$container->run(); + +$pdo = new \PDO( + sprintf('pgsql:host=%s;port=5432;dbname=database', $container->getAddress()), + 'username', + 'password', +); + +// Do something with pdo +``` + ### Redis ```php