An Erlang and json interface for PostgreSQL hstore.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
test
.gitignore
.travis.yml
LICENSE.md
Makefile
README.md
dialyzer.ignore-warnings
dikdik.jpg
rebar
rebar.config

README.md

Build Status

Dikdik

README

Authors: Tristan Sloughter tristan.sloughter@gmail.com Jordan Wilberding jwilberding@gmail.com

Website: http://blog.erlware.org

dikdik is a an Erlang and json interface for PostgreSQL hstore

Quick Start

Build

$ make

Examples

$ make shell
Erlang R15B03 (erts-5.9.3.1) [source] [smp:4:4] [async-threads:30] [hipe] [kernel-poll:true]

Eshell V5.9.3.1  (abort with ^G)
(dikdik@five9s-MacBook-Air-2.local)1> dikdik:new(<<"wutang">>).
ok
(dikdik@five9s-MacBook-Air-2.local)2> dikdik:insert(<<"wutang">>, <<"doc1">>, <<"{\"type\":{\"test\":\"testmore\"},\"name\":5}">>).
ok
(dikdik@five9s-MacBook-Air-2.local)3> dikdik:find(<<"wutang">>, <<"doc1">>).
<<"{\"type\":{\"test\":\"testmore\"},\"name\":5}">>

Testing

Edit Common Test Config

$ cat test/ct.config
%{database_url, "postgres://<username>:<password>@<host>:<port>/<database>"}.

Uncomment this line and set the postgres url.

Run Tests

$ make ct