Module epgsql_cmd_parse

Asks server to parse SQL query and send information aboud bind-parameters and result columns.

Behaviours: epgsql_command.

Description

Asks server to parse SQL query and send information aboud bind-parameters and result columns.

Empty Name creates a "disposable" anonymous prepared statement. Non-empty Name creates a named prepared statement (name is not shared between connections), which should be explicitly closed when no logner needed (but will be terminated automatically when connection is closed). Non-empty name can't be rebound to another query; it should be closed for being available again.
  > Parse
  < ParseComplete
  > Describe
  < ParameterDescription
  < RowDescription | NoData

Data Types

response()

response() = {ok, #statement{name = string(), columns = [#column{name = binary(), type = epgsql:epgsql_type(), oid = non_neg_integer(), size = -1 | pos_integer(), modifier = -1 | pos_integer(), format = integer(), table_oid = non_neg_integer(), table_attr_number = pos_integer()}], types = [epgsql:epgsql_type()], parameter_info = [epgsql_oid_db:oid_entry()]}} | {error, epgsql:query_error()}

Function Index

execute/2
handle_message/4
init/1

Function Details

execute/2

execute(Sock, Parse) -> any()

handle_message/4

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

init/1

init(X1) -> any()


Generated by EDoc