2021-07-15 15:44:26 +03:00
|
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
|
2021-11-04 19:08:33 +03:00
|
|
|
module Hasura.Backends.MySQL.Instances.Metadata () where
|
2021-07-15 15:44:26 +03:00
|
|
|
|
|
|
|
import Hasura.Backends.MySQL.Connection qualified as MySQL
|
|
|
|
import Hasura.Prelude
|
2022-05-05 16:43:50 +03:00
|
|
|
import Hasura.RQL.Types.EventTrigger (RecreateEventTriggers (RETDoNothing))
|
2021-07-15 15:44:26 +03:00
|
|
|
import Hasura.RQL.Types.Metadata.Backend
|
|
|
|
import Hasura.SQL.Backend
|
2022-11-02 01:41:22 +03:00
|
|
|
import Hasura.Server.Migrate.Version (SourceCatalogMigrationState (SCMSNotSupported))
|
2021-07-15 15:44:26 +03:00
|
|
|
|
|
|
|
instance BackendMetadata 'MySQL where
|
2022-11-02 01:41:22 +03:00
|
|
|
prepareCatalog _ = pure (RETDoNothing, SCMSNotSupported)
|
2021-08-04 14:42:24 +03:00
|
|
|
buildComputedFieldInfo = error "buildComputedFieldInfo: MySQL backend does not support this operation yet."
|
|
|
|
fetchAndValidateEnumValues = error "fetchAndValidateEnumValues: MySQL backend does not support this operation yet."
|
2022-09-05 05:42:59 +03:00
|
|
|
resolveSourceConfig = MySQL.resolveSourceConfig
|
2022-03-08 16:02:13 +03:00
|
|
|
resolveDatabaseMetadata _ = MySQL.resolveDatabaseMetadata
|
2021-08-04 14:42:24 +03:00
|
|
|
parseBoolExpOperations = error "parseBoolExpOperations: MySQL backend does not support this operation yet."
|
|
|
|
buildFunctionInfo = error "buildFunctionInfo: MySQL backend does not support this operation yet."
|
|
|
|
updateColumnInEventTrigger = error "updateColumnInEventTrigger: MySQL backend does not support this operation yet."
|
|
|
|
parseCollectableType = error "parseCollectableType: MySQL backend does not support this operation yet."
|
2022-04-11 14:24:11 +03:00
|
|
|
postDropSourceHook = MySQL.postDropSourceHook
|
2022-05-25 13:24:41 +03:00
|
|
|
buildComputedFieldBooleanExp _ _ _ _ _ _ =
|
|
|
|
error "buildComputedFieldBooleanExp: MySQL backend does not support this operation yet."
|