Skip to content

erlware/dikdik

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

An Erlang and json interface for PostgreSQL hstore.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published