posterize v0.12.1 posterize_xt_jsx

a posterize extension that supports the json and jsonb types

this module uses the jsx json library and decodes json objects to maps

Summary

Functions

decodes the postgres json and jsonb types to atoms, binaries, integers, floats and maps and lists containing atoms, binaries, integers and floats types

encodes atoms, binaries, integers, floats and maps and lists containing atoms, binaries, integers and floats to the postgres json and jsonb types

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, json, state, )

decodes the postgres json and jsonb types to atoms, binaries, integers, floats and maps and lists containing atoms, binaries, integers and floats types

encode(type_info, term, state, )

encodes atoms, binaries, integers, floats and maps and lists containing atoms, binaries, integers and floats to the postgres json and jsonb types

format()

Callback implementation for Postgrex.Extension.format/1.

init(, )

Callback implementation for Postgrex.Extension.init/2.

matching()

Callback implementation for Postgrex.Extension.matching/1.