Module epgsql_cmd_describe_statement

Asks server to provide input parameter and result rows information.

Behaviours: epgsql_command.

Description

Asks server to provide input parameter and result rows information.

Almost the same as epgsql_cmd_parse.

  > Describe(STATEMENT)
  < 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, Desc_stmt) -> any()

handle_message/4

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

init/1

init(Name) -> any()


Generated by EDoc