graphql-engine/server/src-lib/Hasura/Backends/DataWrapper/Adapter/Execute.hs
Karthikeyan Chinnakonda 362aca9db3 server: streaming subscriptions execution (Incremental PR - 2)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4016
GitOrigin-RevId: 778300dd5ea094bc76b8f96c046313132863f832
2022-04-07 14:43:01 +00:00

37 lines
1.6 KiB
Haskell

{-# OPTIONS_GHC -fno-warn-orphans #-}
module Hasura.Backends.DataWrapper.Adapter.Execute
(
)
where
--------------------------------------------------------------------------------
import Hasura.Base.Error (Code (NotSupported), QErr, throw400, throw500)
import Hasura.GraphQL.Execute.Backend (BackendExecute (..))
import Hasura.Prelude
import Hasura.SQL.Backend (BackendType (DataWrapper))
import Hasura.Tracing qualified as Tracing
--------------------------------------------------------------------------------
instance BackendExecute 'DataWrapper where
type PreparedQuery 'DataWrapper = ()
type MultiplexedQuery 'DataWrapper = Void
type ExecutionMonad 'DataWrapper = Tracing.TraceT (ExceptT QErr IO)
mkDBQueryPlan _ _ _ _ =
throw400 NotSupported "mkDBQueryPlan: not implemented for GraphQL Data Wrappers."
mkDBQueryExplain _ _ _ _ _ =
throw400 NotSupported "mkDBQueryExplain: not implemented for GraphQL Data Wrappers."
mkDBMutationPlan _ _ _ _ _ =
throw400 NotSupported "mkDBMutationPlan: not implemented for GraphQL Data Wrappers."
mkLiveQuerySubscriptionPlan _ _ _ _ _ =
throw400 NotSupported "mkLiveQuerySubscriptionPlan: not implemented for GraphQL Data Wrappers."
mkDBStreamingSubscriptionPlan _ _ _ _ =
throw400 NotSupported "mkLiveQuerySubscriptionPlan: not implemented for GraphQL Data Wrappers."
mkDBRemoteRelationshipPlan _ _ _ _ _ _ _ =
throw500 "mkDBRemoteRelationshipPlan: not implemented for GraphQL Data Wrappers."
mkSubscriptionExplain _ =
throw400 NotSupported "mkSubscriptionExplain: not implemented for GraphQL Data Wrappers."