https://github.com/yiisoft/db-pgsql
PostgreSQL driver for Yii Database
https://github.com/yiisoft/db-pgsql
database db dbal postgresql query-builder sql yii3
Last synced: 3 months ago
JSON representation
PostgreSQL driver for Yii Database
- Host: GitHub
- URL: https://github.com/yiisoft/db-pgsql
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2018-08-18T12:57:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T01:24:06.000Z (3 months ago)
- Last Synced: 2025-10-01T03:28:55.688Z (3 months ago)
- Topics: database, db, dbal, postgresql, query-builder, sql, yii3
- Language: PHP
- Homepage: http://www.yiiframework.com
- Size: 865 KB
- Stars: 35
- Watchers: 15
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Yii Database PostgreSQL driver
[](https://packagist.org/packages/yiisoft/db-pgsql)
[](https://packagist.org/packages/yiisoft/db-pgsql)
[](https://github.com/yiisoft/db-pgsql/actions/workflows/rector.yml)
[](https://codecov.io/gh/yiisoft/db-pgsql)
[](https://github.styleci.io/repos/145220173?branch=master)
PostgreSQL driver for [Yii Database](https://github.com/yiisoft/db) is a [PostgreSQL] database adapter.
The package provides a database connection interface and a set of classes for interacting with a [PostgreSQL] database.
It allows you to perform common database operations such as executing queries, building and executing `INSERT`, `UPDATE`,
and `DELETE` statements, and working with transactions. It also provides support for PostgreSQL-specific features such
as stored procedures and server-side cursors.
[PostgreSQL]: https://www.postgresql.org/
## Support version
| PHP | PostgreSQL Version | CI-Actions
|---------------|--------------------|-----------
| **8.1 - 8.4** | **9 - 17** |[](https://github.com/yiisoft/db-pgsql/actions/workflows/build.yml) [](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-pgsql/master) [](https://github.com/yiisoft/db-pgsql/actions/workflows/static.yml) [](https://shepherd.dev/github/yiisoft/db-pgsql)
## Installation
The package could be installed with [Composer](https://getcomposer.org):
```shell
composer require yiisoft/db-pgsql
```
> [!IMPORTANT]
> It also depends on [PSR-16: Common Interface for Caching Libraries](https://www.php-fig.org/psr/psr-16/) and requires
> the installation of [PSR-16 implementation](https://packagist.org/providers/psr/simple-cache-implementation).
> For example, [yiisoft/cache](https://github.com/yiisoft/cache) or one of the other [cache handlers](https://github.com/yiisoft/cache#cache-handlers).
## Documentation
For config connection to PostgreSQL database check [Connecting PostgreSQL](https://github.com/yiisoft/db/blob/master/docs/guide/en/connection/pgsql.md).
[Check the documentation](https://github.com/yiisoft/db/blob/master/docs/guide/en/README.md) to learn about usage.
- [Internals](docs/internals.md)
If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
## License
The Yii Database PostgreSQL driver is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.
Maintained by [Yii Software](https://www.yiiframework.com/).
## Support the project
[](https://opencollective.com/yiisoft)
## Follow updates
[](https://www.yiiframework.com/)
[](https://twitter.com/yiiframework)
[](https://t.me/yii3en)
[](https://www.facebook.com/groups/yiitalk)
[](https://yiiframework.com/go/slack)