Module epgsql_codec_text

Codec for text, varchar, bytea.

Behaviours: epgsql_codec.

See also: epgsql_codec_bpchar - for 'char' and 'char(N)'.

Description

Codec for text, varchar, bytea.

If input for text or varchar is provided as a list, not binary, and it contains not just byte(), an attempt to perform unicode conversion will be made.

Also, integer(), float() and atom() are automatically converted to strings, but this kind of conversion might be eventually removed.

Data Types

data()

data() = in_data() | out_data()

in_data()

in_data() = binary() | iolist() | string()

out_data()

out_data() = binary()

Function Index

decode/3
decode_text/3
encode/3
init/2
names/0

Function Details

decode/3

decode(Bin, X2, X3) -> any()

decode_text/3

decode_text(V, X2, X3) -> any()

encode/3

encode(String, Name, State) -> any()

init/2

init(X1, X2) -> any()

names/0

names() -> any()


Generated by EDoc