pgator.db.pq.api

This module defines high-level wrapper around libpq bindings.

The major goals: <ul> <li>Get more control over library errors (by converting to exceptions)</li> <li>Create layer that can be mocked in purpose of unittesting</li> </ul>

Public Imports

pgator.db.pq.types.oids
public import pgator.db.pq.types.oids;
Undocumented in source.

Members

Interfaces

IPGconn
interface IPGconn

Prototype: PGconn

IPGresult
interface IPGresult

Prototype: PGResult

IPostgreSQL
interface IPostgreSQL

OOP styled libpq wrapper to automatically handle library loading/unloading and to provide mockable layer for unittests.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

NCrashed <ncrashed@gmail.com>