imbo / imbo-postgresql-adapters
PostgreSQL adapters for Imbo
Installs: 1 761
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Requires
- php: >=8.1
- ext-pdo: *
- ext-pdo_pgsql: *
- imbo/imbo-pdo-adapters: dev-main
Requires (Dev)
- imbo/imbo: dev-main
- imbo/imbo-adapters-sdk: dev-main
- imbo/imbo-coding-standard: ^2.0
- phpunit/phpunit: ^10.0
- psalm/plugin-phpunit: ^0.18.4
- vimeo/psalm: ^5.5
This package is auto-updated.
Last update: 2024-11-20 00:46:40 UTC
README
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.