graphql-engine/server/src-lib/Hasura/Backends/BigQuery/Instances/Metadata.hs
Karthikeyan Chinnakonda 9177335c31 Source catalog migrations minor enhancements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6531
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
GitOrigin-RevId: 51dd55692f59d6ad0fd54674fb7d3ce00d5d83dd
2022-11-01 22:42:40 +00:00

26 lines
1.2 KiB
Haskell

{-# OPTIONS_GHC -fno-warn-orphans #-}
module Hasura.Backends.BigQuery.Instances.Metadata () where
import Hasura.Backends.BigQuery.DDL qualified as BigQuery
import Hasura.Base.Error (Code (UnexpectedPayload), throw400)
import Hasura.Prelude
import Hasura.RQL.Types.EventTrigger (RecreateEventTriggers (RETDoNothing))
import Hasura.RQL.Types.Metadata.Backend
import Hasura.SQL.Backend
import Hasura.Server.Migrate.Version (SourceCatalogMigrationState (SCMSNotSupported))
instance BackendMetadata 'BigQuery where
prepareCatalog _ = pure (RETDoNothing, SCMSNotSupported)
buildComputedFieldInfo = BigQuery.buildComputedFieldInfo
fetchAndValidateEnumValues = BigQuery.fetchAndValidateEnumValues
resolveSourceConfig = BigQuery.resolveSourceConfig
resolveDatabaseMetadata _ = BigQuery.resolveSource
parseBoolExpOperations = BigQuery.parseBoolExpOperations
buildFunctionInfo = BigQuery.buildFunctionInfo
updateColumnInEventTrigger = BigQuery.updateColumnInEventTrigger
parseCollectableType = BigQuery.parseCollectableType
postDropSourceHook = BigQuery.postDropSourceHook
buildComputedFieldBooleanExp _ _ _ _ _ _ =
throw400 UnexpectedPayload "Computed fields are not supported in boolean expressions"