Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
types and helpers for user-defined-functions after they have been resolved in the schema cache
Synopsis
- data FunctionVolatility
- funcTypToTxt :: FunctionVolatility -> Text
- newtype FunctionArgName = FunctionArgName {}
- data InputArgument a
- type FunctionInputArgument b = InputArgument (FunctionArgument b)
- data FunctionExposedAs
- newtype FunctionPermissionInfo = FunctionPermissionInfo {}
- type FunctionPermissionsMap = HashMap RoleName FunctionPermissionInfo
- data FunctionCustomRootFields = FunctionCustomRootFields {}
- emptyFunctionCustomRootFields :: FunctionCustomRootFields
- data FunctionInfo (b :: BackendType) = FunctionInfo {
- _fiSQLName :: FunctionName b
- _fiGQLName :: Name
- _fiGQLArgsName :: Name
- _fiGQLAggregateName :: Name
- _fiSystemDefined :: SystemDefined
- _fiVolatility :: FunctionVolatility
- _fiExposedAs :: FunctionExposedAs
- _fiInputArgs :: Seq (FunctionInputArgument b)
- _fiReturnType :: TableName b
- _fiDescription :: Maybe Text
- _fiPermissions :: FunctionPermissionsMap
- _fiJsonAggSelect :: JsonAggSelect
- _fiComment :: Maybe Text
- type FunctionCache b = HashMap (FunctionName b) (FunctionInfo b)
- data TrackableFunctionInfo b = TrackableFunctionInfo {}
- newtype TrackableTableInfo b = TrackableTableInfo {
- tfTableiName :: TableName b
- data TrackableInfo b = TrackableInfo {}
- data FunctionConfig b = FunctionConfig {}
- emptyFunctionConfig :: FunctionConfig b
- type DBFunctionsMetadata b = HashMap (FunctionName b) (FunctionOverloads b)
- newtype FunctionOverloads b = FunctionOverloads {}
- data FunctionArgsExpG a = FunctionArgsExp {
- _faePositional :: [a]
- _faeNamed :: HashMap Text a
- type FunctionArgsExp b v = FunctionArgsExpG (FunctionArgumentExp b v)
- emptyFunctionArgsExp :: FunctionArgsExpG a
Documentation
data FunctionVolatility Source #
Instances
newtype FunctionArgName Source #
Instances
data InputArgument a Source #
Instances
type FunctionInputArgument b = InputArgument (FunctionArgument b) Source #
data FunctionExposedAs Source #
Indicates whether the user requested the corresponding function to be
tracked as a mutation or a query/subscription, in track_function
.
Instances
newtype FunctionPermissionInfo Source #
Instances
FromJSON FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache | |
ToJSON FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache | |
HasCodec FunctionPermissionInfo Source # | |
Generic FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache type Rep FunctionPermissionInfo :: Type -> Type # | |
Show FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache showsPrec :: Int -> FunctionPermissionInfo -> ShowS # show :: FunctionPermissionInfo -> String # showList :: [FunctionPermissionInfo] -> ShowS # | |
Eq FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache | |
type Rep FunctionPermissionInfo Source # | |
Defined in Hasura.Function.Cache type Rep FunctionPermissionInfo = D1 ('MetaData "FunctionPermissionInfo" "Hasura.Function.Cache" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "FunctionPermissionInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_fpmRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoleName))) |
data FunctionCustomRootFields Source #
Custom root fields for functions. When set, will be the names exposed to the user in the schema.
See rfcs/function-root-field-customisation.md for more information.
Instances
emptyFunctionCustomRootFields :: FunctionCustomRootFields Source #
A function custom root fields without custom names set. This is the default.
data FunctionInfo (b :: BackendType) Source #
Tracked SQL function metadata. See buildFunctionInfo
.
FunctionInfo | |
|
Instances
type FunctionCache b = HashMap (FunctionName b) (FunctionInfo b) Source #
data TrackableFunctionInfo b Source #
Instances
newtype TrackableTableInfo b Source #
Instances
data TrackableInfo b Source #
Instances
data FunctionConfig b Source #
Tracked function configuration, and payload of the pg_track_function
and
pg_set_function_customization
API calls.
FunctionConfig | |
|
Instances
emptyFunctionConfig :: FunctionConfig b Source #
The default function config; v1 of the API implies this.
type DBFunctionsMetadata b = HashMap (FunctionName b) (FunctionOverloads b) Source #
newtype FunctionOverloads b Source #
Instances
FromJSON (RawFunctionInfo b) => FromJSON (FunctionOverloads b) Source # | |
Defined in Hasura.Function.Cache parseJSON :: Value -> Parser (FunctionOverloads b) Source # parseJSONList :: Value -> Parser [FunctionOverloads b] Source # | |
ToJSON (RawFunctionInfo b) => ToJSON (FunctionOverloads b) Source # | |
Defined in Hasura.Function.Cache toJSON :: FunctionOverloads b -> Value Source # toEncoding :: FunctionOverloads b -> Encoding Source # toJSONList :: [FunctionOverloads b] -> Value Source # toEncodingList :: [FunctionOverloads b] -> Encoding Source # | |
Backend b => Show (FunctionOverloads b) Source # | |
Defined in Hasura.Function.Cache showsPrec :: Int -> FunctionOverloads b -> ShowS # show :: FunctionOverloads b -> String # showList :: [FunctionOverloads b] -> ShowS # | |
Backend b => Eq (FunctionOverloads b) Source # | |
Defined in Hasura.Function.Cache (==) :: FunctionOverloads b -> FunctionOverloads b -> Bool # (/=) :: FunctionOverloads b -> FunctionOverloads b -> Bool # |
data FunctionArgsExpG a Source #
FunctionArgsExp | |
|
Instances
type FunctionArgsExp b v = FunctionArgsExpG (FunctionArgumentExp b v) Source #