z_db_pgsql_codec (zotonic_core v1.0.0-rc.17)

Postgresql zotonic codec

These are conversion routines between how z_db expects values and how epgsl expects them.

Notable differences: - Input values {term, ...} (use the ?DB_PROPS(...) macro!) are term_to_binary encoded and decoded - date/datetimes have a floating-point second argument in epgsql, in Zotonic they don't.

Summary

Functions

decode(Cell, TypeName, State)

decode_text(Cell, TypeName, State)

encode(Cell, TypeName, State)

init(Term, Sock)

names()