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
$ make
$ 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}">>
$ cat test/ct.config
%{database_url, "postgres://<username>:<password>@<host>:<port>/<database>"}.
Uncomment this line and set the postgres url.
$ make ct