opaleye-0.7.3.0: An SQL-generating DSL targeting PostgreSQL
Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.JSONBuildObjectFields

Synopsis

Documentation

jsonBuildObjectField Source #

Arguments

:: String

Field name

-> Column a

Field value

-> JSONBuildObjectFields 

Given a label and a column, generates a pair for use with jsonBuildObject

jsonBuildObject :: JSONBuildObjectFields -> Column SqlJson Source #

Create an SqlJson object from a collection of fields.

Note: This is implemented as a variadic function in postgres, and as such, is limited to 50 arguments, or 25 key-value pairs.