Module epgsql_codec_bpchar

Codec for blank-padded fixed-size character type.

Behaviours: epgsql_codec.

Description

Codec for blank-padded fixed-size character type

CHAR (single-byte) is represented as byte(); CHARACTER(N) / CHAR(N) as binary string

SELECT 1::char; SELECT 'abc'::char(10)

For 'text', 'varchar' see epgsql_codec_text.

Data Types

data()

data() = binary() | byte()

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(C, X2, X3) -> any()

init/2

init(X1, X2) -> any()

names/0

names() -> any()


Generated by EDoc