Class that provides an abstraction layer above the PHP PostgreSQL API. This centralizes all the database connection info such as host, port, username and password. Same class can be used to connect to multiple databases, local and remote, on different ports.In addition to normal stuff that you'd expect from a db abstraction layer, it also supports transactions and comprehensive error checking/management.
CODIGO: