anchor.diff:      end.
   
   %% 删除
  +delete(Key, {?MODULE, Table}) -> delete(Table, Key);
   delete(Table, Key) ->
       Id = ss:to_binary(Key),
       init(Table),
  
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: %% 搜索
  %% Cond 条件
  %% Option 选项: [{start, Start}, {count, Count}, {sort, Sort}]
  search(Fun, Options, {?MODULE, Table}) -> search(Table, Fun, Options);
  search(Table, Fun, Options) ->
      init(Table),
      Count = proplists:get_value(count, Options, -1),
  