hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.JSON

Synopsis

Documentation

newtype JSON json Source #

Wrapper for (de)serializing underlying type as json.

Constructors

JSON 

Fields

Instances

Functor JSON Source # 

Methods

fmap :: (a -> b) -> JSON a -> JSON b #

(<$) :: a -> JSON b -> JSON a #

Eq json => Eq (JSON json) Source # 

Methods

(==) :: JSON json -> JSON json -> Bool #

(/=) :: JSON json -> JSON json -> Bool #

Ord json => Ord (JSON json) Source # 

Methods

compare :: JSON json -> JSON json -> Ordering #

(<) :: JSON json -> JSON json -> Bool #

(<=) :: JSON json -> JSON json -> Bool #

(>) :: JSON json -> JSON json -> Bool #

(>=) :: JSON json -> JSON json -> Bool #

max :: JSON json -> JSON json -> JSON json #

min :: JSON json -> JSON json -> JSON json #

Show json => Show (JSON json) Source # 

Methods

showsPrec :: Int -> JSON json -> ShowS #

show :: JSON json -> String #

showList :: [JSON json] -> ShowS #

PQFormat (JSON json) Source # 
FromSQL (JSON ByteString) Source # 

Associated Types

type PQBase (JSON ByteString) :: * Source #

FromSQL (JSON ByteString) Source # 

Associated Types

type PQBase (JSON ByteString) :: * Source #

FromSQL (JSON Value) Source # 

Associated Types

type PQBase (JSON Value) :: * Source #

ToSQL (JSON ByteString) Source # 

Associated Types

type PQDest (JSON ByteString) :: * Source #

ToSQL (JSON ByteString) Source # 

Associated Types

type PQDest (JSON ByteString) :: * Source #

ToSQL (JSON Value) Source # 

Associated Types

type PQDest (JSON Value) :: * Source #

Methods

toSQL :: JSON Value -> ParamAllocator -> (Ptr (PQDest (JSON Value)) -> IO r) -> IO r Source #

type PQBase (JSON ByteString) Source # 
type PQBase (JSON ByteString) Source # 
type PQBase (JSON Value) Source # 
type PQDest (JSON ByteString) Source # 
type PQDest (JSON ByteString) Source # 
type PQDest (JSON Value) Source # 

newtype JSONB jsonb Source #

Wrapper for (de)serializing underlying type as jsonb.

Constructors

JSONB 

Fields

Instances

Functor JSONB Source # 

Methods

fmap :: (a -> b) -> JSONB a -> JSONB b #

(<$) :: a -> JSONB b -> JSONB a #

Eq jsonb => Eq (JSONB jsonb) Source # 

Methods

(==) :: JSONB jsonb -> JSONB jsonb -> Bool #

(/=) :: JSONB jsonb -> JSONB jsonb -> Bool #

Ord jsonb => Ord (JSONB jsonb) Source # 

Methods

compare :: JSONB jsonb -> JSONB jsonb -> Ordering #

(<) :: JSONB jsonb -> JSONB jsonb -> Bool #

(<=) :: JSONB jsonb -> JSONB jsonb -> Bool #

(>) :: JSONB jsonb -> JSONB jsonb -> Bool #

(>=) :: JSONB jsonb -> JSONB jsonb -> Bool #

max :: JSONB jsonb -> JSONB jsonb -> JSONB jsonb #

min :: JSONB jsonb -> JSONB jsonb -> JSONB jsonb #

Show jsonb => Show (JSONB jsonb) Source # 

Methods

showsPrec :: Int -> JSONB jsonb -> ShowS #

show :: JSONB jsonb -> String #

showList :: [JSONB jsonb] -> ShowS #

PQFormat (JSONB jsonb) Source # 
FromSQL (JSONB ByteString) Source # 

Associated Types

type PQBase (JSONB ByteString) :: * Source #

FromSQL (JSONB ByteString) Source # 

Associated Types

type PQBase (JSONB ByteString) :: * Source #

FromSQL (JSONB Value) Source # 

Associated Types

type PQBase (JSONB Value) :: * Source #

ToSQL (JSONB ByteString) Source # 

Associated Types

type PQDest (JSONB ByteString) :: * Source #

ToSQL (JSONB ByteString) Source # 

Associated Types

type PQDest (JSONB ByteString) :: * Source #

ToSQL (JSONB Value) Source # 

Associated Types

type PQDest (JSONB Value) :: * Source #

Methods

toSQL :: JSONB Value -> ParamAllocator -> (Ptr (PQDest (JSONB Value)) -> IO r) -> IO r Source #

type PQBase (JSONB ByteString) Source # 
type PQBase (JSONB ByteString) Source # 
type PQBase (JSONB Value) Source # 
type PQDest (JSONB ByteString) Source # 
type PQDest (JSONB ByteString) Source # 
type PQDest (JSONB Value) Source #