graphql-engine/server/src-lib/Hasura/Backends/Postgres/Instances/Metadata.hs
Antoine Leblanc ba70ca427a server: switch to a sub-backend approach
GitOrigin-RevId: 660126d5f65620fb58a3ffcbed564e9e35f59938
2021-04-21 21:45:32 +00:00

31 lines
1.1 KiB
Haskell

{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE UndecidableInstances #-}
module Hasura.Backends.Postgres.Instances.Metadata () where
import Data.Typeable
import qualified Hasura.Backends.Postgres.DDL as PG
import Hasura.RQL.Types.Metadata.Backend
import Hasura.SQL.Backend
import Hasura.SQL.Tag
instance
( HasTag ('Postgres pgKind)
, Typeable ('Postgres pgKind)
) => BackendMetadata ('Postgres pgKind) where
buildComputedFieldInfo = PG.buildComputedFieldInfo
buildRemoteFieldInfo = PG.buildRemoteFieldInfo
fetchAndValidateEnumValues = PG.fetchAndValidateEnumValues
resolveSourceConfig = PG.resolveSourceConfig
resolveDatabaseMetadata = PG.resolveDatabaseMetadata
createTableEventTrigger = PG.createTableEventTrigger
buildEventTriggerInfo = PG.buildEventTriggerInfo @pgKind
parseBoolExpOperations = PG.parseBoolExpOperations
buildFunctionInfo = PG.buildFunctionInfo
updateColumnInEventTrigger = PG.updateColumnInEventTrigger
parseCollectableType = PG.parseCollectableType
postDropSourceHook = PG.postDropSourceHook