anchor.diff:      end.
   
   
  -do_qbuf_exists(QBufRef, #state{qbufs = QBufs} = State) ->
  -    case get_qbuf_record(QBufRef, QBufs) of
  -        false ->
  -            {reply, false, State};
  -        _QBuf ->
  -            {reply, true, State}
  -    end.
  -
  -
   do_batch_put(QBufRef, Data, #state{qbufs          = QBufs0,
                                      total_size     = TotalSize0,
                                      hard_watermark = HardWatermark} = State0) ->
  
positive.code: %%%===================================================================
  %%% do_thing functions
  %%%===================================================================
  
  do_get_qbufs(#state{qbufs = QBufs} = State) ->
      Res = [{Ref, [{orig_qry, OrigQry},
                    {is_ready, IsReady},
                    {last_accessed, LastAccessed},
                    {total_records, TotalRecords}]}
             || {Ref, #qbuf{orig_qry      = OrigQry,
                            is_ready      = IsReady,
                            last_accessed = LastAccessed,
                            total_records = TotalRecords}} <- QBufs],
      {reply, Res, State}.
  
  
  do_get_total_size(#state{total_size = TotalSize} = State) ->
      {reply, TotalSize, State}.
  
  
  do_get_or_create_qbuf(SQL, NSubqueries,
                        OrigDDL, Options,
  
negative.code: %% @doc Dispose of this query buffer (do nothing if it does not exist).
  delete_qbuf(QBufRef) ->
      gen_server:call(?SERVER, {delete_qbuf, QBufRef}).
  
  -spec batch_put(qbuf_ref(), [data_row()]) ->
                         ok | {error, bad_qbuf_ref|overfull}.
  