graphql-engine/server/src-lib/Hasura/RQL/DDL/Schema/Cache.hs-boot
Rakesh Emmadi 6d92e4f9db save permissions, relationships and collections in catalog with 'is_system_defined' explicitly (#3165)
* save permissions, relationships and collections in catalog with 'is_system_defined'
* Use common stanzas in the .cabal file
* Refactor migration code into lib instead of exe
* Add new server test suite that exercises migrations
* Make graphql-engine clean succeed even if the schema does not exist
2019-10-21 11:01:05 -05:00

22 lines
840 B
Haskell

module Hasura.RQL.DDL.Schema.Cache where
import Hasura.Prelude
import Hasura.Db
import Hasura.RQL.Types
type CacheBuildM m
= (CacheRWM m, MonadTx m, MonadIO m, HasHttpManager m, HasSQLGenCtx m)
buildSchemaCacheStrict :: (CacheBuildM m) => m ()
buildSchemaCacheFor :: (CacheBuildM m) => MetadataObjId -> m ()
buildSchemaCache :: (CacheBuildM m) => m ()
buildSchemaCacheWithoutSetup :: (CacheBuildM m) => m ()
withNewInconsistentObjsCheck :: (QErrM m, CacheRM m) => m a -> m a
withMetadataCheck :: (CacheBuildM m) => Bool -> m a -> m a
purgeDependentObject :: (CacheRWM m, MonadTx m) => SchemaObjId -> m ()
withSchemaObject :: (QErrM m, CacheRWM m) => (Text -> InconsistentMetadataObj) -> m a -> m (Maybe a)
withSchemaObject_ :: (QErrM m, CacheRWM m) => (Text -> InconsistentMetadataObj) -> m () -> m ()