Current section

Files

Jump to
postgleam include postgleam@codec_Codec.hrl
Raw

include/postgleam@codec_Codec.hrl

-record(codec, {
type_name :: binary(),
oid :: integer(),
format :: postgleam@codec:format(),
encode :: fun((postgleam@value:value()) -> {ok, bitstring()} |
{error, binary()}),
decode :: fun((bitstring()) -> {ok, postgleam@value:value()} |
{error, binary()})
}).