Module epgsql_cmd_equery

Performs 2nd stage of extended query protocol.

Behaviours: epgsql_command.

See also: epgsql_cmd_parse.

Description

Performs 2nd stage of extended query protocol.

Takes prepared statement() and bind-parameters for placeholders and produces query results.
  > Bind
  < BindComplete
  > Execute
  < DataRow*
  < CommandComplete
  > Close
  < CloseComplete
  > Sync
  < ReadyForQuery

Data Types

response()

response() = {ok, Count::non_neg_integer(), Cols::[epgsql:column()], Rows::[tuple()]} | {ok, Count::non_neg_integer()} | {ok, Cols::[epgsql:column()], Rows::[tuple()]} | {error, epgsql:query_error()}

Function Index

execute/2
handle_message/4
init/1

Function Details

execute/2

execute(Sock, Equery) -> any()

handle_message/4

handle_message(X1, Bin, Sock, Equery) -> any()

init/1

init(X1) -> any()


Generated by EDoc