Postgrex.Types

Encodes and decodes between Postgres’ protocol and Elixir values.

Source

Summary

decode(oid, binary, state)

Decodes a binary to an Elixir value for the given type

decode(extension, oid, binary, state)

Decodes a binary with the extension for the given type

encode(oid, value, state)

Encodes an Elixir term to a binary for the given type

encode(extension, oid, value, state)

Encodes an Elixir term with the extension for the given type

Types

state

State used by the encoder/decoder functions

oid :: pos_integer

Postgres internal identifier that maps to a type. See http://www.postgresql.org/docs/9.4/static/datatype-oid.html.

Functions

decode(oid, binary, state)

Specs:

Decodes a binary to an Elixir value for the given type.

Source
decode(extension, oid, binary, state)

Specs:

Decodes a binary with the extension for the given type.

Source
encode(oid, value, state)

Specs:

Encodes an Elixir term to a binary for the given type.

Source
encode(extension, oid, value, state)

Specs:

Encodes an Elixir term with the extension for the given type.

Source