sad_spirit/pg_wrapper
This package has two parts and purposes
Converter of PostgreSQL data types to their PHP equivalents and back and
An object oriented wrapper around PHP’s native pgsql extension.
While the converter part can be used separately e.g. with PDO, features like transparent conversion of query results work only with the wrapper.
A similar wrapper for PDO is possible, but is neither implemented nor planned as it will have to depend on highly inefficient handling of column metadata in PDO_pgsql driver.
Contents:
- Overview
- Classes for complex PostgreSQL types
- Type converters
- Type converter factories
- Setting up a database connection
- Executing queries
- Working with a query result
- Transactions
- Exception classes
- Adding functionality via decorators