IHP Api Reference
Safe HaskellSafe-Inferred

IHP.DataSync.ChangeNotifications

Synopsis

Documentation

channelName :: TableWithRLS -> ByteString Source #

Returns the event name of the event that the pg notify trigger dispatches

data Change Source #

Constructors

Change 

Fields

Instances

Instances details
FromJSON Change Source # 
Instance details

Defined in IHP.DataSync.ChangeNotifications

Methods

parseJSON :: Value -> Parser Change #

parseJSONList :: Value -> Parser [Change] #

ToJSON Change Source # 
Instance details

Defined in IHP.DataSync.ChangeNotifications

Show Change Source # 
Instance details

Defined in IHP.DataSync.ChangeNotifications

Methods

showsPrec :: Int -> Change -> ShowS #

show :: Change -> String

showList :: [Change] -> ShowS #

Eq Change Source # 
Instance details

Defined in IHP.DataSync.ChangeNotifications

Methods

(==) :: Change -> Change -> Bool #

(/=) :: Change -> Change -> Bool #

createNotificationFunction :: TableWithRLS -> Query Source #

Returns the sql code to set up a database trigger. Mainly used by watchInsertOrUpdateTable.