-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()}) }).