graphql-engine/server/src-lib/Hasura/Backends/MySQL/Schema/Introspection.hs
2023-04-13 01:30:50 +00:00

14 lines
448 B
Haskell

module Hasura.Backends.MySQL.Schema.Introspection
( listAllTables,
)
where
import Hasura.Backends.MySQL.Types (TableName)
import Hasura.Base.Error (QErr, throw500)
import Hasura.Prelude
import Hasura.RQL.Types.Common (SourceName)
-- | List all tables, tracked or untracked, on a given data source.
listAllTables :: MonadError QErr m => SourceName -> m [TableName]
listAllTables _ = throw500 "listAllTables: not implemented for MySQL backend"