posterize v0.12.1 posterize_xt_interval

a posterize interval extension

intervals are represented by a {calendar:time(), days, months} tuple

Summary

Functions

decodes a postgres interval type into a {calendar:time(), days, months} tuple

encodes a {calendar:time(), days, month} tuple into the postgres interval type

Callback implementation for Postgrex.Extension.format/1

Callback implementation for Postgrex.Extension.init/2

Callback implementation for Postgrex.Extension.matching/1

Functions

decode(, arg, , )

decodes a postgres interval type into a {calendar:time(), days, months} tuple

any component of an interval can be positive or negative. a net negative interval represents a negative adjustment to a timestamp

encode(type_info, value, , )

encodes a {calendar:time(), days, month} tuple into the postgres interval type

any component of an interval can be positive or negative. a net negative interval represents a negative adjustment to a timestamp

format()

Callback implementation for Postgrex.Extension.format/1.

init(, )

Callback implementation for Postgrex.Extension.init/2.

matching()

Callback implementation for Postgrex.Extension.matching/1.