mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 07:52:14 +03:00
79682e0598
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8565 Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com> GitOrigin-RevId: 38bf56cc420a6c818a9ca7d6f846f5018535c808
28 lines
1.3 KiB
Haskell
28 lines
1.3 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"
|
|
supportsBeingRemoteRelationshipTarget _ = True
|
|
validateLogicalModel _ _ _ _ = pure ()
|