<div dir="ltr">Hello,<div><br></div><div>I have a small database that's running right now in CouchDB, it's called sample_database.  What I'd</div><div>like to do is to read, create, delete, update documents and run some of the views inside from an </div>
<div>Erlang app.  I looked online and found this example:</div><div><a href="http://www.softwarepassion.com/importing-data-to-couchdb-java-ruby-and-erlang-way/">http://www.softwarepassion.com/importing-data-to-couchdb-java-ruby-and-erlang-way/</a><br>
</div><div><br></div><div>From that, I proceeded to make the following little script:</div><div><div>-module(test).</div><div><br></div><div>-import(queue,[in/1,out/1,new/0]).</div><div>-export([start/0]).</div><div>-include("../couch_db.hrl").</div>
<div><br></div><div>-define(ADMIN_USER_CTX, {user_ctx, #user_ctx{roles = [<<"_admin">>]}}).</div><div><br></div><div>start() -></div><div>  io:format("Hello world!~n~n"),</div><div><br></div>
<div>  couch_db:open(<<"sample_database">>, [?ADMIN_USER_CTX]).</div></div><div><br></div><div>However, when I run this, I get the following error:</div><div><div>18> test:start().</div><div>Hello world!</div>
<div><br></div><div>** exception error: undefined function couch_db:open/2</div></div><div><br></div><div>It's obvious I'm not including a library of some sort.  I'm curious how I can connect to my little </div>
<div>database in the simplest way possible just to start with.  Has anyone done this before?<br></div></div>