mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-03 05:08:47 +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
35 lines
1.6 KiB
Haskell
35 lines
1.6 KiB
Haskell
{-# LANGUAGE UndecidableInstances #-}
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
-- | MSSQL Instances Metadata
|
|
--
|
|
-- Defines a 'Hasura.RQL.Types.Metadata.Backend.BackendMetadata' type class instance for MSSQL.
|
|
module Hasura.Backends.MSSQL.Instances.Metadata () where
|
|
|
|
import Hasura.Backends.MSSQL.DDL qualified as MSSQL
|
|
import Hasura.Backends.MSSQL.Schema.Introspection qualified as MSSQL (listAllTables)
|
|
import Hasura.Base.Error (throw500)
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.DDL.Relationship (defaultBuildArrayRelationshipInfo, defaultBuildObjectRelationshipInfo)
|
|
import Hasura.RQL.Types.BackendType
|
|
import Hasura.RQL.Types.Metadata.Backend
|
|
|
|
instance BackendMetadata 'MSSQL where
|
|
prepareCatalog = MSSQL.prepareCatalog
|
|
buildComputedFieldInfo = MSSQL.buildComputedFieldInfo
|
|
fetchAndValidateEnumValues = MSSQL.fetchAndValidateEnumValues
|
|
resolveSourceConfig = MSSQL.resolveSourceConfig
|
|
resolveDatabaseMetadata _ _ = MSSQL.resolveDatabaseMetadata
|
|
parseBoolExpOperations = MSSQL.parseBoolExpOperations
|
|
buildArrayRelationshipInfo _ = defaultBuildArrayRelationshipInfo
|
|
buildObjectRelationshipInfo _ = defaultBuildObjectRelationshipInfo
|
|
buildFunctionInfo = MSSQL.buildFunctionInfo
|
|
updateColumnInEventTrigger = MSSQL.updateColumnInEventTrigger
|
|
parseCollectableType = MSSQL.parseCollectableType
|
|
postDropSourceHook = MSSQL.postDropSourceHook
|
|
buildComputedFieldBooleanExp _ _ _ _ _ _ =
|
|
throw500 "Computed fields are not yet defined for MSSQL backends"
|
|
supportsBeingRemoteRelationshipTarget _ = True
|
|
listAllTables = MSSQL.listAllTables
|
|
validateNativeQuery _ _ _ _ = pure () -- for now, all queries are valid
|