anchor.diff:          {1390292578,  4}], _} = pulsedb:read(<<"input{from=1390224618,to=1390292579}">>, required_dates_db).
   
   
  -% merge(_) ->
  -%   {ok, DB0} = pulsedb:open("test/v2/merge"),
  -
  -%   Ticks1 = [
  -%     #tick{name = <<"source1">>, utc = 21, value = [{input,5},{output,0}]},
  -%     #tick{name = <<"source1">>, utc = 22, value = [{input,10},{output,2}]},
  -%     #tick{name = <<"source1">>, utc = 23, value = [{input,3},{output,6}]}
  -%   ],
  -%   {ok, DB1} = pulsedb:append(Ticks1, DB0),
  -
  -%   Ticks2 = [
  -%     #tick{name = <<"source1">>, utc = 11, value = [{input,5},{output,0}]},
  -%     #tick{name = <<"source1">>, utc = 12, value = [{input,10},{output,2}]},
  -%     #tick{name = <<"source1">>, utc = 13, value = [{input,3},{output,6}]},
  -%     #tick{name = <<"source1">>, utc = 21, value = [{input,5},{output,0}]},
  -%     #tick{name = <<"source1">>, utc = 22, value = [{input,10},{output,2}]}
  -%   ],
  -%   {ok, 3, DB2} = pulsedb:merge(Ticks2, DB1),
  -%   pulsedb:close(DB2),
  -
  -
  -%   Ticks3 = lists:sublist(Ticks2,1,3)++Ticks1,
  -%   {ok, DB3} = pulsedb:open("test/v2/merge"),
  -%   {ok, Ticks3, DB4} = pulsedb:read([{name,<<"source1">>}, {from, "1970-01-01"},{to,"1970-01-02"}], DB3),
  -%   pulsedb:close(DB4),
  -
  -%   ok.
   
   query_mutation(_) ->
     Q1s = <<"sum:10s-avg:ds{from=0,to=1800}">>,
  
positive.code:     replicator,
      % forbid_to_read_after_append,
      % forbid_to_append_after_read,
      % merge,
      info,
      required_dates,
      query_mutation
  
negative.code:   
    Q5_ = pulsedb_query:remove_tag([from, to], Q1),
    Q5 = pulsedb_query:add_tag([{account, "test@email.com"}, {from, 123}], Q5_),
    <<"sum:10s-avg:ds{account=test@email.com,from=123}">> = pulsedb_query:render(Q5).
  
  
  
  
  
  
  
  
  
  
  
  