anchor.diff:  
   %% API
   -export([new/1
  +        ,new/2
           ,all/1
           ,match/2
           ,lookup/2
  
positive.code: %% Create new table named Table
  -spec new(Table::binary()) -> ok | {error, Error::binary()}.
  new(Table) when is_binary(Table) ->
      {{create, _}, _} =
          dikdik_db:simple_query(<<"CREATE EXTENSION IF NOT EXISTS hstore">>),
      {{create, _}, _} =
          dikdik_db:simple_query(<<"CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"">>),
      {{create, _}, _} =
          dikdik_db:simple_query(<<"CREATE TABLE ", Table/binary, " (id varchar(256) PRIMARY KEY, data hstore)">>),
      {{create, _}, _} =
          dikdik_db:simple_query(<<"CREATE INDEX ", Table/binary, "gin_idx ON ", Table/binary, " USING GIN(data)">>),
      {{create, _}, _} =
          dikdik_db:simple_query(<<"CREATE INDEX ", Table/binary, "h_idx ON ", Table/binary, " USING BTREE(data)">>),
      ok.
  
  %% Return all documents in Table
  
negative.code:        is_binary(Id),
         is_binary(Doc) ; is_list(Doc) ->
      Values = to_insert_vals(Doc),
      {{update, _}, _} =
          dikdik_db:simple_query(<<"UPDATE ", Table/binary," SET data=data || ('", Values/binary,"') WHERE id='", Id/binary, "'">>),
      ok.
  
  