Behaviours: epgsql_command.
Asks server to parse SQL query and send information aboud bind-parameters and result columns.
EmptyName
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
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()}
execute/2 | |
handle_message/4 | |
init/1 |
execute(Sock, Parse) -> any()
handle_message(X1, Bin, Sock, State) -> any()
init(X1) -> any()
Generated by EDoc