Browse Source

term as key

Namdak Tonpa 5 years ago
parent
commit
30f4add126
2 changed files with 4 additions and 4 deletions
  1. 3 3
      include/backend.hrl
  2. 1 1
      src/kvs.app.src

+ 3 - 3
include/backend.hrl

@@ -4,10 +4,10 @@
                   join/1,dir/0,create_table/2,add_table_index/2,seq/2,all/1,count/1,version/0]).
 -compile({no_auto_import,[get/1,put/2]}).
 -spec put(tuple() | list(tuple())) -> ok | {error,any()}.
--spec get(atom() | any(), any()) -> {ok,any()} | {error,not_found}.
--spec delete(atom(), any()) -> ok | {error,not_found}.
+-spec get(term() | any(), any()) -> {ok,any()} | {error,not_found}.
+-spec delete(term(), any()) -> ok | {error,not_found}.
 -spec dump() -> ok.
 -spec start() -> ok.
 -spec stop() -> ok.
--spec index(atom(), any(), any()) -> list(tuple()).
+-spec index(term(), any(), any()) -> list(tuple()).
 -endif.

+ 1 - 1
src/kvs.app.src

@@ -2,6 +2,6 @@
    [{description, "KVS Abstract Chain Database"},
     {vsn, "6.7.7"},
     {registered, []},
-    {applications, [kernel,stdlib,rocksdb]},
+    {applications, [kernel,stdlib]},
     {mod, { kvs, []}},
     {env, []} ]}.