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 = undefined | string(), columns = undefined | [#column{name = undefined | binary(), type = undefined | epgsql:epgsql_type(), oid = undefined | non_neg_integer(), size = undefined | -1 | pos_integer(), modifier = undefined | -1 | pos_integer(), format = undefined | integer(), table_oid = undefined | non_neg_integer(), table_attr_number = undefined | pos_integer()}], types = undefined | [epgsql:epgsql_type()], parameter_info = undefined | [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, Jul 9 2023, 01:18:41.