Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- interpColSpec :: [Column b] -> PermColSpec b -> [Column b]
- permissionIsDefined :: PermType -> RolePermInfo backend -> Bool
- assertPermDefined :: (Backend backend, MonadError QErr m) => RoleName -> PermType -> TableInfo backend -> m ()
- newtype CreatePerm a b = CreatePerm (WithTable b (PermDef b a))
- data CreatePermP1Res a = CreatePermP1Res {
- cprInfo :: a
- cprDeps :: [SchemaDependency]
- procBoolExp :: (QErrM m, TableCoreInfoRM b m, BackendMetadata b, GetAggregationPredicatesDeps b) => SourceName -> TableName b -> FieldInfoMap (FieldInfo b) -> BoolExp b -> m (AnnBoolExpPartialSQL b, [SchemaDependency])
- getDepHeadersFromVal :: Value -> [Text]
- getDependentHeaders :: BoolExp b -> HashSet Text
- data DropPerm b = DropPerm {}
Documentation
interpColSpec :: [Column b] -> PermColSpec b -> [Column b] Source #
Intrepet a PermColSpec
column specification, which can either refer to a
list of named columns or all columns.
permissionIsDefined :: PermType -> RolePermInfo backend -> Bool Source #
assertPermDefined :: (Backend backend, MonadError QErr m) => RoleName -> PermType -> TableInfo backend -> m () Source #
newtype CreatePerm a b Source #
CreatePerm (WithTable b (PermDef b a)) |
Instances
(Backend b, FromJSON (PermDef b a)) => FromJSON (CreatePerm a b) Source # | |
Defined in Hasura.RQL.DDL.Permission.Internal parseJSON :: Value -> Parser (CreatePerm a b) parseJSONList :: Value -> Parser [CreatePerm a b] |
data CreatePermP1Res a Source #
CreatePermP1Res | |
|
procBoolExp :: (QErrM m, TableCoreInfoRM b m, BackendMetadata b, GetAggregationPredicatesDeps b) => SourceName -> TableName b -> FieldInfoMap (FieldInfo b) -> BoolExp b -> m (AnnBoolExpPartialSQL b, [SchemaDependency]) Source #
getDepHeadersFromVal :: Value -> [Text] Source #
getDependentHeaders :: BoolExp b -> HashSet Text Source #