Skip to content

imbo/imbo-postgresql-adapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2d52ce8 · Feb 24, 2025

History

18 Commits
Feb 23, 2025
Sep 2, 2021
Sep 4, 2021
Feb 24, 2025
Feb 23, 2025
Sep 2, 2021
Sep 2, 2021
Feb 24, 2025
Feb 23, 2025
Feb 24, 2025
Feb 24, 2025
Feb 23, 2025
Feb 23, 2025

Repository files navigation

PostgreSQL database adapters for Imbo

CI

Installation

composer require imbo/imbo-postgresql-adapters

Usage

This package provides PostgreSQL adapters for Imbo using PDO.

$database = new Imbo\Database\PostgreSQL($dsn, $username, $password, $options);

Running integration tests

If you want to run the integration tests you will need a running PostgreSQL service. The repo contains a simple configuration file for Docker Compose that you can use to quickly run a PostgreSQL instance along with pgAdmin.

If you wish to use this, run the following command to start up the service after you have cloned the repo:

docker compose up -d

After the service is running you can execute all tests by simply running PHPUnit:

composer run test # or ./vendor/bin/phpunit

License

MIT, see LICENSE.