posterize (0.12.0)

Build Status

an erlang wrapper for postgrex

documentation at hexdocs

data representation

postgres        erlang
----------      ------
NULL            null
bool            true | false
char            <<"é">>
int             42
float           42.0
text            <<"hallo world">>
bytea           <<42>>
array           [1, 2, 3]
composite type  {42, <<"title">>, <<"content">>}
uuid            <<160,238,188,153,156,11,78,248,187,109,107,185,189,56,10,17>>
hstore          #{<<"foo">> => <<"bar">>}

todo

  • ranges, numerics, time zones and all the other missing data types
  • more tests, especially integration

acknowledgments

this thing definitely wouldn’t exist without ericmj and fishcakez. all credit to them