anchor.diff:    stream/3,
     attach/4,
     fetch_attachment/3,
  -  drop_attachment/3]).
  +  drop_attachment/3,
  +  stream_attach/2,
  +  stream_attach_done/1]).
   
   %% gen_server callbacks
   -export([init/1,
  
positive.code:   server_info/0,
    create_db/1,
    save/2,
    get/2,
    get/3,
    all/1,
  
negative.code: -spec(save(DBName :: term(), Doc :: term()) -> {ok, Doc :: term()}).
  save(DBName, Doc) -> gen_server:call(?MODULE, {save_doc, DBName, Doc}).
  
  save(DBName, Doc, RefRev) ->
    {DocKVList} = Doc,
    gen_server:call(?MODULE, {
      save_doc, DBName, {lists:concat([
        RefRev,
        DocKVList
      ])}}).
  
  -spec(get(DBName :: term(), Ref :: term()) -> {ok, Doc :: term()}).
  get(DBName, Ref) -> gen_server:call(?MODULE, {get_doc, DBName, Ref, []}).
  
  