Module epgsql_cmd_prepared_query

Almost the same as equery, but don't execute 'CLOSE'.

Behaviours: epgsql_command.

Description

Almost the same as equery, but don't execute 'CLOSE'

So, statement can be reused multiple times.
  > Bind
  < BindComplete
  > Execute
  < DataRow*
  < CommandComplete
  > 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, Pquery) -> any()

handle_message/4

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

init/1

init(X1) -> any()


Generated by EDoc