1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
%%%-------------------------------------------------------------------
%%% File: dynomite_couch_storage.erl
%%% @author Brad Anderson
%%% @copyright 2009 Brad Anderson
%%% @doc
%%%
%%% @end
%%%
%%% @since 2009-07-14
%%%-------------------------------------------------------------------
-module(dynomite_couch_storage).
-author('brad@cloudant.com').
%% API
-export([name/1, open/2, close/1, create/2]).
%% , close/1, get/2, put/4, has_key/2, delete/2, fold/3
-include_lib("../include/common.hrl").
%% -record(row, {key, context, values}).
%%====================================================================
%% API
%%====================================================================
name(Boundary) ->
showroom_utils:int_to_hexstr(Boundary).
open(Directory, Name) ->
%% ?debugFmt("~nDirectory: ~p~nName : ~p~n", [Directory,Name]),
{ok, {Directory, Name}}.
close(_Table) -> ok.
create(_Directory, _Name) ->
ok.
%%====================================================================
%% Internal functions
%%====================================================================
|