2021-03-18 20:39:35 +03:00
|
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
2021-04-22 00:44:37 +03:00
|
|
|
{-# LANGUAGE UndecidableInstances #-}
|
2021-03-18 20:39:35 +03:00
|
|
|
|
|
|
|
module Hasura.Backends.Postgres.Instances.Metadata () where
|
|
|
|
|
2021-04-22 00:44:37 +03:00
|
|
|
import Data.Typeable
|
|
|
|
|
2021-03-18 20:39:35 +03:00
|
|
|
import qualified Hasura.Backends.Postgres.DDL as PG
|
|
|
|
|
|
|
|
import Hasura.RQL.Types.Metadata.Backend
|
|
|
|
import Hasura.SQL.Backend
|
2021-04-22 00:44:37 +03:00
|
|
|
import Hasura.SQL.Tag
|
|
|
|
|
2021-03-18 20:39:35 +03:00
|
|
|
|
2021-04-22 00:44:37 +03:00
|
|
|
instance
|
|
|
|
( HasTag ('Postgres pgKind)
|
|
|
|
, Typeable ('Postgres pgKind)
|
|
|
|
) => BackendMetadata ('Postgres pgKind) where
|
2021-03-18 20:39:35 +03:00
|
|
|
buildComputedFieldInfo = PG.buildComputedFieldInfo
|
|
|
|
buildRemoteFieldInfo = PG.buildRemoteFieldInfo
|
|
|
|
fetchAndValidateEnumValues = PG.fetchAndValidateEnumValues
|
|
|
|
resolveSourceConfig = PG.resolveSourceConfig
|
|
|
|
resolveDatabaseMetadata = PG.resolveDatabaseMetadata
|
|
|
|
createTableEventTrigger = PG.createTableEventTrigger
|
2021-04-22 00:44:37 +03:00
|
|
|
buildEventTriggerInfo = PG.buildEventTriggerInfo @pgKind
|
2021-03-18 20:39:35 +03:00
|
|
|
parseBoolExpOperations = PG.parseBoolExpOperations
|
|
|
|
buildFunctionInfo = PG.buildFunctionInfo
|
|
|
|
updateColumnInEventTrigger = PG.updateColumnInEventTrigger
|
|
|
|
parseCollectableType = PG.parseCollectableType
|
|
|
|
postDropSourceHook = PG.postDropSourceHook
|