Authors: Tristan Sloughter [email protected] Jordan Wilberding [email protected]
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)
([email protected])1> dikdik:new(<<"wutang">>).
ok
([email protected])2> dikdik:insert(<<"wutang">>, <<"doc1">>, <<"{\"type\":{\"test\":\"testmore\"},\"name\":5}">>).
ok
([email protected])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