{-# OPTIONS_GHC -fno-warn-orphans #-}

module Hasura.Backends.DataConnector.Adapter.API () where

--------------------------------------------------------------------------------

import Hasura.Prelude
import Hasura.SQL.Backend (BackendType (DataConnector))
import Hasura.Server.API.Backend (BackendAPI (..), relationshipCommands, sourceCommands, tableCommands)

--------------------------------------------------------------------------------

instance BackendAPI 'DataConnector where
  metadataV1CommandParsers :: [CommandParser 'DataConnector]
metadataV1CommandParsers =
    [[CommandParser 'DataConnector]] -> [CommandParser 'DataConnector]
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat
      [ Backend 'DataConnector => [CommandParser 'DataConnector]
forall (b :: BackendType). Backend b => [CommandParser b]
sourceCommands @'DataConnector,
        Backend 'DataConnector => [CommandParser 'DataConnector]
forall (b :: BackendType). Backend b => [CommandParser b]
tableCommands @'DataConnector,
        Backend 'DataConnector => [CommandParser 'DataConnector]
forall (b :: BackendType). Backend b => [CommandParser b]
relationshipCommands @'DataConnector
      ]