anchor.diff:      {reply, {ok, Value}, State}.
   
   handle_cast(Req = {{_, _}, {connect, Host, Username, Password, Opts}},
  -            #state{queue = Queue} = State) ->
  +            #state{queue = Q} = State) ->
       Timeout = proplists:get_value(timeout, Opts, 5000),
       Port = proplists:get_value(port, Opts, 5432),
       SockOpts = [{active, false}, {packet, raw}, binary, {nodelay, true}],
  
positive.code:     put(password, Password),
      {noreply,
       State2#state{handler = auth,
                    queue = queue:in(Req, Queue),
                    async = Async}};
  
  handle_cast(stop, #state{queue = Queue} = State) ->
      %% TODO flush queue
      {stop, normal, State};
  
  handle_cast(Req = {{_, _}, {parse, Name, Sql, Types}}, State) ->
      #state{queue = Queue} = State,
      Bin = pgsql_wire:encode_types(Types),
      send(State, $P, [Name, 0, Sql, 0, Bin]),
      send(State, $D, [$S, Name, 0]),
      send(State, $H, []),
      {noreply, State#state{queue = queue:in(Req, Queue)}};
  
  handle_cast(Req = {{_,_}, {equery, Statement, Parameters}}, State) ->
      #state{queue = Queue} = State,
      #statement{name = StatementName, columns = Columns} = Statement,
      Bin1 = pgsql_wire:encode_parameters(Parameters),
      Bin2 = pgsql_wire:encode_formats(Columns),
  
negative.code: 
  %% ReadyForQuery
  initializing({$Z, <<Status:8>>}, State) ->
      #state{parameters = Parameters, queue = Q} = State,
      erase(username),
      erase(password),
      %% TODO decode dates to now() format
  