anchor.diff:      end.
   
   %% 遍历所有数据
  +all({?MODULE, Table}) -> all(Table);
   all(Table) ->
       search(Table, fun(_Obj) -> true end, []).
  
positive.code:     end.
  
  %% 删除
  delete(Table, Key) ->
      Id = ss:to_binary(Key),
      init(Table),
  
negative.code: -export([init/1, search/3]).
  
  %% 表初始化
  init({?MODULE, Table}) -> init(Table);
  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({?MODULE, Table}) -> close(Table);
  close(Table) ->
      dets:close(Table).
  
  %% 删除所有数据
  drop({?MODULE, Table}) -> drop(Table);
  drop(Table) ->
      init(Table),
      R = dets:delete_all_objects(Table),
  