Postgrex.Extension.decode
You're seeing just the callback
decode
, go back to Postgrex.Extension module for more information.
Specs
Returns a quoted list of clauses that decode a binary to an Elixir value.
The pattern must use binary syntax and decode a fixed length using the signed 32 bit big endian integer byte length header.
def decode(_) do
quote do
# length header is in bytes
<<len :: signed-32, integer :: signed-size(len)-unit(8)>> ->
integer
end
end