2021-12-22 03:10:28 +03:00
|
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
|
2022-05-02 08:03:12 +03:00
|
|
|
module Hasura.Backends.DataConnector.Adapter.API () where
|
2021-12-22 03:10:28 +03:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2022-04-29 05:13:13 +03:00
|
|
|
import Hasura.Prelude
|
2022-05-02 08:03:12 +03:00
|
|
|
import Hasura.SQL.Backend (BackendType (DataConnector))
|
2022-04-29 05:13:13 +03:00
|
|
|
import Hasura.Server.API.Backend (BackendAPI (..), sourceCommands, tableCommands)
|
2021-12-22 03:10:28 +03:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2022-05-02 08:03:12 +03:00
|
|
|
instance BackendAPI 'DataConnector where
|
2022-04-29 05:13:13 +03:00
|
|
|
metadataV1CommandParsers =
|
|
|
|
concat
|
2022-05-02 08:03:12 +03:00
|
|
|
[ sourceCommands @'DataConnector,
|
|
|
|
tableCommands @'DataConnector
|
2022-04-29 05:13:13 +03:00
|
|
|
]
|