mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
dc73b7b7d5
No logic in this PR, just tidying things up (renaming the backend from `Experimental` to `DataWrapper`). PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3779 GitOrigin-RevId: f11acf563ccd8b9f16bc23c5e92da392aa4cfb2c
35 lines
1.4 KiB
Haskell
35 lines
1.4 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."
|
|
mkDBSubscriptionPlan _ _ _ _ _ =
|
|
throw400 NotSupported "mkDBSubscriptionPlan: not implemented for GraphQL Data Wrappers."
|
|
mkDBRemoteRelationshipPlan _ _ _ _ _ _ _ =
|
|
throw500 "mkDBRemoteRelationshipPlan: not implemented for GraphQL Data Wrappers."
|
|
mkLiveQueryExplain _ =
|
|
throw400 NotSupported "mkLiveQueryExplain: not implemented for GraphQL Data Wrappers."
|