pgator-backend ~master

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


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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:

Authors:
  • Anton Gushcha (NCrashed <ncrashed@gmail.com>)
  • Shamyan Roman (Zaramzan <shamyan.roman@gmail.com>)
  • Denis Feklushkin <denis.feklushkin@gmail.com>
Dependencies:
vibe-d, dlogg, derelict-pq
Versions:
0.2.5 2015-Sep-16
0.2.4 2015-Mar-17
0.2.3 2015-Feb-26
0.2.2 2015-Feb-26
0.2.1 2015-Jan-18
Show all 19 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 1055 downloads total

Score:
1.0
Short URL:
pgator-backend.dub.pm