Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
/ pgator-backend Public archive

Light wrapper over PostrgeSQL, libpq binary protocol, asynchronous connection pool

License

Notifications You must be signed in to change notification settings

DSoftOut/pgator-backend

Repository files navigation

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:

About

Light wrapper over PostrgeSQL, libpq binary protocol, asynchronous connection pool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages