mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
cb80942e4f
[GDC-489]: https://hasurahq.atlassian.net/browse/GDC-489?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8862 GitOrigin-RevId: cfff2d9c688185e00f4a830dbdbe173dba4ce7f0
33 lines
1.7 KiB
Haskell
33 lines
1.7 KiB
Haskell
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Hasura.Backends.BigQuery.Instances.Metadata () where
|
|
|
|
import Hasura.Backends.BigQuery.DDL qualified as BigQuery
|
|
import Hasura.Backends.BigQuery.Schema.Introspection qualified as BigQuery (listAllTables)
|
|
import Hasura.Base.Error (Code (UnexpectedPayload), throw400)
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.DDL.Relationship (defaultBuildArrayRelationshipInfo, defaultBuildObjectRelationshipInfo)
|
|
import Hasura.RQL.Types.BackendType
|
|
import Hasura.RQL.Types.EventTrigger (RecreateEventTriggers (RETDoNothing))
|
|
import Hasura.RQL.Types.Metadata.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
|
|
buildArrayRelationshipInfo _ = defaultBuildArrayRelationshipInfo
|
|
buildObjectRelationshipInfo _ = defaultBuildObjectRelationshipInfo
|
|
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
|
|
listAllTables = BigQuery.listAllTables
|
|
validateNativeQuery _ _ _ _ = pure ()
|