Module epgsql_wire

Data Types

row_decoder()

abstract datatype: row_decoder()

Function Index

build_decoder/2Build decoder for DataRow.
decode_columns/3decode column information.
decode_complete/1decode command complete msg.
decode_data/2decode row data.
decode_error/1decode ErrorResponse See http://www.postgresql.org/docs/current/interactive/protocol-error-fields.html.
decode_message/1
decode_parameters/2decode ParameterDescription.
decode_strings/1decode multiple null-terminated string.
encode_command/1Encode iodata with size-prefix (used for StartupMessage and SSLRequest packets).
encode_command/2Encode PG command with type and size prefix.
encode_formats/1encode expected column formats.
encode_parameters/2encode parameters for 'Bind'.
encode_standby_status_update/3encode replication status message.
encode_types/2encode types.
format/2

Function Details

build_decoder/2

build_decoder(Columns::[epgsql:column()], Codec::epgsql_binary:codec()) -> row_decoder()

Build decoder for DataRow

decode_columns/3

decode_columns(Count::non_neg_integer(), Bin::binary(), Codec::epgsql_binary:codec()) -> [epgsql:column()]

decode column information

decode_complete/1

decode_complete(Bin) -> any()

decode command complete msg

decode_data/2

decode_data(Bin::binary(), X2::row_decoder()) -> tuple()

decode row data

decode_error/1

decode_error(Bin::binary()) -> epgsql:query_error()

decode ErrorResponse See http://www.postgresql.org/docs/current/interactive/protocol-error-fields.html

decode_message/1

decode_message(Bin::binary()) -> {byte(), binary(), binary()} | binary()

decode_parameters/2

decode_parameters(X1::binary(), Codec::epgsql_binary:codec()) -> [epgsql_oid_db:type_info() | {unknown_oid, epgsql_oid_db:oid()}]

decode ParameterDescription

decode_strings/1

decode_strings(Bin::binary()) -> [binary(), ...]

decode multiple null-terminated string

encode_command/1

encode_command(Data) -> any()

Encode iodata with size-prefix (used for StartupMessage and SSLRequest packets)

encode_command/2

encode_command(Type, Data) -> any()

Encode PG command with type and size prefix

encode_formats/1

encode_formats(Columns::[epgsql:column()]) -> binary()

encode expected column formats

encode_parameters/2

encode_parameters(Parameters::[], Codec::epgsql_binary:codec()) -> iolist()

encode parameters for 'Bind'

encode_standby_status_update/3

encode_standby_status_update(ReceivedLSN, FlushedLSN, AppliedLSN) -> any()

encode replication status message

encode_types/2

encode_types(Types, Codec) -> any()

encode types

format/2

format(Column, Codec) -> any()


Generated by EDoc