Postgrex v1.0.0-rc.0 Postgrex.Extensions.Calendar

An extension that supports the calendar structs introduced in Elixir 1.3.0: Date, Time, DateTime and NaiveDateTime. This module won’t be compiled if the Elixir version is less than 1.3.0 because the structs do not exist.

This extension is not used by default, it needs to be included in the :extensions option to Postgrex.start_link/1. The option term is ignored by this extension.

Examples

Postgrex.start_link([extensions: [{Postgrex.Extensions.Calendar, []}]])

Summary

Functions

Callback implementation for Postgrex.Extension.format/1

Callback implementation for Postgrex.Extension.init/2

Callback implementation for Postgrex.Extension.matching/1

Functions

decode(type_info, value, , )

Callback implementation for Postgrex.Extension.decode/4.

encode(type_info, value, , )

Callback implementation for Postgrex.Extension.encode/4.

format()

Callback implementation for Postgrex.Extension.format/1.

init(, )

Callback implementation for Postgrex.Extension.init/2.

matching()

Callback implementation for Postgrex.Extension.matching/1.