Pgeasy is a PostgreSQL API that is a cleaner interface to the libpq library, more like an SQL 4GL interface. There are examples in share/examples/postgresql/libpqeasy and docs in share/doc/postgresql/libpqeasy WWW: https://www.postgresql.org/docs/7.2/static/pgeasy.html