sqlc-hs-0.2.0.0: test/golden/out/Pulse/Database/MarkResolvedNotificationSent.hs
{- This file was auto-generated from queries.sql by sqlc-hs. -}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module Pulse.Database.MarkResolvedNotificationSent where
import Pulse.Database.Internal (Query(..), Enum, Params, Result)
import qualified Database.PostgreSQL.Simple
import qualified Database.PostgreSQL.Simple.FromRow
import qualified Database.PostgreSQL.Simple.ToField
import qualified Database.PostgreSQL.Simple.ToRow
import qualified Data.Int
import qualified Data.Foldable
query_markResolvedNotificationSent :: Query "markResolvedNotificationSent" ":exec"
query_markResolvedNotificationSent = Query "UPDATE incident_escalations\nSET resolved_notification_sent_at = NOW(), updated_at = NOW()\nWHERE id = ?"
data instance Params "markResolvedNotificationSent" = Params_markResolvedNotificationSent
{
incident_escalations_id :: Data.Int.Int64
}
data instance Result "markResolvedNotificationSent" = Result_markResolvedNotificationSent
{
}
instance Database.PostgreSQL.Simple.ToRow.ToRow (Params "markResolvedNotificationSent") where
toRow Params_markResolvedNotificationSent{..} =
[
Database.PostgreSQL.Simple.ToField.toField incident_escalations_id
]
instance Database.PostgreSQL.Simple.FromRow.FromRow (Result "markResolvedNotificationSent") where
fromRow =
pure Result_markResolvedNotificationSent