2021-04-22 00:44:37 +03:00
|
|
|
{-# LANGUAGE UndecidableInstances #-}
|
2021-09-24 01:56:37 +03:00
|
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
2021-03-18 20:39:35 +03:00
|
|
|
|
2022-01-11 01:54:51 +03:00
|
|
|
-- | MSSQL Instances Metadata
|
|
|
|
--
|
|
|
|
-- Defines a 'Hasura.RQL.Types.Metadata.Backend.BackendMetadata' type class instance for MSSQL.
|
2021-03-18 20:39:35 +03:00
|
|
|
module Hasura.Backends.MSSQL.Instances.Metadata () where
|
|
|
|
|
2021-09-24 01:56:37 +03:00
|
|
|
import Hasura.Backends.MSSQL.DDL qualified as MSSQL
|
2022-05-25 13:24:41 +03:00
|
|
|
import Hasura.Base.Error (throw500)
|
2021-09-24 01:56:37 +03:00
|
|
|
import Hasura.RQL.Types.Metadata.Backend
|
|
|
|
import Hasura.SQL.Backend
|
2021-03-18 20:39:35 +03:00
|
|
|
|
|
|
|
instance BackendMetadata 'MSSQL where
|
2022-05-05 16:43:50 +03:00
|
|
|
prepareCatalog = MSSQL.prepareCatalog
|
2021-09-24 01:56:37 +03:00
|
|
|
buildComputedFieldInfo = MSSQL.buildComputedFieldInfo
|
2021-03-18 20:39:35 +03:00
|
|
|
fetchAndValidateEnumValues = MSSQL.fetchAndValidateEnumValues
|
2021-09-24 01:56:37 +03:00
|
|
|
resolveSourceConfig = MSSQL.resolveSourceConfig
|
2022-03-08 16:02:13 +03:00
|
|
|
resolveDatabaseMetadata _ = MSSQL.resolveDatabaseMetadata
|
2021-09-24 01:56:37 +03:00
|
|
|
parseBoolExpOperations = MSSQL.parseBoolExpOperations
|
|
|
|
buildFunctionInfo = MSSQL.buildFunctionInfo
|
2021-03-18 20:39:35 +03:00
|
|
|
updateColumnInEventTrigger = MSSQL.updateColumnInEventTrigger
|
2021-09-24 01:56:37 +03:00
|
|
|
parseCollectableType = MSSQL.parseCollectableType
|
|
|
|
postDropSourceHook = MSSQL.postDropSourceHook
|
2022-05-25 13:24:41 +03:00
|
|
|
buildComputedFieldBooleanExp _ _ _ _ _ _ =
|
|
|
|
throw500 "Computed fields are not yet defined for MSSQL backends"
|