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

Opaleye.Internal.JSONBuildObjectFields

Synopsis

Documentation

jsonBuildObjectField Source #

Arguments

:: String

Field name

-> Field_ n a

Field value

-> JSONBuildObjectFields 

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

jsonBuildObject :: JSONBuildObjectFields -> Field 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.