anchor.diff:      end.
   
   %% 遍历所有数据
  +all({?MODULE, Table}) -> all(Table);
   all(Table) ->
       search(Table, fun(_Obj) -> true end, []).
  
positive.code: -export([init/1, search/3]).
  
  %% 表初始化
  init(Table) ->
      Filename = io_lib:format("data/~s.nosqlite", [ss:to_binary(Table)]),
      filelib:ensure_dir(Filename),
      dets:open_file(Table, [{type, set}, {file, Filename}, {repair, true}]).
  close(Table) ->
      dets:close(Table).
  
  %% 删除所有数据
  drop(Table) ->
      init(Table),
      R = dets:delete_all_objects(Table),
  
negative.code:     close(Table),
      R.
  %% 使用任意字段查询
  find(Key, Value, {?MODULE, Table}) -> find(Table, Key, Value);
  find(Table, Key1, Value) ->
      Key = ss:to_binary(Key1),
      init(Table),
  