Description

Lightweight wrapper for PostgreSQL with binary protocol conversion to BSON and asynchronous connection pool

Package Information

Version0.2.5 (2015-Sep-16)
Repository https://github.com/DSoftOut/pgator-backend
LicenseMIT
CopyrightCopyright © 2014, DSoftOut
AuthorsAnton Gushcha (NCrashed <ncrashed@gmail.com>), Shamyan Roman (Zaramzan <shamyan.roman@gmail.com>), Denis Feklushkin <denis.feklushkin@gmail.com>
Registered byAnton Gushcha
Dependencies

derelict-pq

vibe-d

dlogg

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

Build Status

pgator-backend

This package is part of pgator json rpc server that could be used as dedicated libary.

Features:

  • Lightweight bindings for PostgreSQL
  • Asynchronous connection pool
  • Reversed libpq binary protocol for BSON conversion

Supported types

The bson converter can handle following types received from PostgreSQL:

  • POD types (Char, Bool, Int8, Int4, Int2, Float8, Float4, Void, Money)
  • ByteArrays
  • Strings (Text, FixedString, VariableString)
  • Oid, Tid, Xid, Cid
  • Json, Xml (returned as a string)
  • RegProc
  • Point, Path, Polygone, LineSegment, Circle
  • MacAddress, InetAddress
  • Numeric
  • Date, AbsTime, RelTime, Time, TimeWithZone, TimeInterval, Interval, TimeStamp, TimeStampWithZone
  • Arrays and Array of ByteArray

Usage

Add to dub.json file:

"dependencies": {
  "pgator-backend": ">=0.1.2"
}

Usage examples:

Available versions

0.2.5 0.2.4 0.2.3 0.2.2 0.2.1 0.2.0 0.1.2 0.1.1 0.1.0 ~master ~try_next_gen ~issue-51 ~issue-4 ~improve_errors ~dmd-2.067 ~denizzzka-patch-4 ~denizzzka-patch-3 ~denizzzka-patch-2 ~denizzzka-patch-1