hpqtypes-1.6.0.0: 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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

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

Eq json => Eq (JSON json) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

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

Ord json => Ord (JSON json) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

show :: JSON json -> String #

showList :: [JSON json] -> ShowS #

PQFormat (JSON json) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

FromSQL (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSON ByteString) :: * Source #

FromSQL (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSON ByteString) :: * Source #

FromSQL (JSON Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSON Value) :: * Source #

ToSQL (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQDest (JSON ByteString) :: * Source #

ToSQL (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQDest (JSON ByteString) :: * Source #

ToSQL (JSON Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQBase (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQBase (JSON Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSON ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSON Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

newtype JSONB jsonb Source #

Wrapper for (de)serializing underlying type as jsonb.

Constructors

JSONB 

Fields

Instances
Functor JSONB Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

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

Eq jsonb => Eq (JSONB jsonb) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

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

Ord jsonb => Ord (JSONB jsonb) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Methods

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

show :: JSONB jsonb -> String #

showList :: [JSONB jsonb] -> ShowS #

PQFormat (JSONB jsonb) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

FromSQL (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSONB ByteString) :: * Source #

FromSQL (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSONB ByteString) :: * Source #

FromSQL (JSONB Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQBase (JSONB Value) :: * Source #

ToSQL (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQDest (JSONB ByteString) :: * Source #

ToSQL (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

Associated Types

type PQDest (JSONB ByteString) :: * Source #

ToSQL (JSONB Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQBase (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQBase (JSONB Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSONB ByteString) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON

type PQDest (JSONB Value) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.JSON