Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FunctionVolatility
- funcTypToTxt :: FunctionVolatility -> Text
- newtype FunctionArgName = FunctionArgName {
- getFuncArgNameTxt :: Text
- data InputArgument a
- _IASessionVariables :: forall a. Prism' (InputArgument a) FunctionArgName
- _IAUserProvided :: forall a a. Prism (InputArgument a) (InputArgument a) a a
- type FunctionInputArgument b = InputArgument (FunctionArgument b)
- data FunctionExposedAs
- newtype FunctionPermissionInfo = FunctionPermissionInfo {}
- fpmRole :: Iso' FunctionPermissionInfo RoleName
- type FunctionPermissionsMap = HashMap RoleName FunctionPermissionInfo
- data FunctionCustomRootFields = FunctionCustomRootFields {
- _fcrfFunction :: Maybe Name
- _fcrfFunctionAggregate :: Maybe Name
- 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
- fiVolatility :: forall b. Lens' (FunctionInfo b) FunctionVolatility
- fiSystemDefined :: forall b. Lens' (FunctionInfo b) SystemDefined
- fiSQLName :: forall b. Lens' (FunctionInfo b) (FunctionName b)
- fiReturnType :: forall b. Lens' (FunctionInfo b) (TableName b)
- fiPermissions :: forall b. Lens' (FunctionInfo b) FunctionPermissionsMap
- fiJsonAggSelect :: forall b. Lens' (FunctionInfo b) JsonAggSelect
- fiInputArgs :: forall b. Lens' (FunctionInfo b) (Seq (FunctionInputArgument b))
- fiGQLName :: forall b. Lens' (FunctionInfo b) Name
- fiGQLArgsName :: forall b. Lens' (FunctionInfo b) Name
- fiGQLAggregateName :: forall b. Lens' (FunctionInfo b) Name
- fiExposedAs :: forall b. Lens' (FunctionInfo b) FunctionExposedAs
- fiDescription :: forall b. Lens' (FunctionInfo b) (Maybe Text)
- fiComment :: forall b. Lens' (FunctionInfo b) (Maybe Text)
- getFunctionArgsGQLName :: Name -> FunctionConfig -> (Name -> Name) -> Name
- getFunctionGQLName :: Name -> FunctionConfig -> (Name -> Name) -> Name
- getFunctionAggregateGQLName :: Name -> FunctionConfig -> (Name -> Name) -> Name
- getInputArgs :: FunctionInfo b -> Seq (FunctionArgument b)
- type FunctionCache b = HashMap (FunctionName b) (FunctionInfo b)
- data FunctionConfig = FunctionConfig {}
- emptyFunctionConfig :: FunctionConfig
- type DBFunctionsMetadata b = HashMap (FunctionName b) [RawFunctionInfo b]
- 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
funcTypToTxt :: FunctionVolatility -> Text Source #
newtype FunctionArgName Source #
FunctionArgName | |
|
Instances
data InputArgument a Source #
Instances
Functor InputArgument Source # | |
Defined in Hasura.RQL.Types.Function fmap :: (a -> b) -> InputArgument a -> InputArgument b # (<$) :: a -> InputArgument b -> InputArgument a # | |
Eq a => Eq (InputArgument a) Source # | |
Defined in Hasura.RQL.Types.Function (==) :: InputArgument a -> InputArgument a -> Bool # (/=) :: InputArgument a -> InputArgument a -> Bool # | |
Show a => Show (InputArgument a) Source # | |
Defined in Hasura.RQL.Types.Function showsPrec :: Int -> InputArgument a -> ShowS # show :: InputArgument a -> String # showList :: [InputArgument a] -> ShowS # | |
ToJSON a => ToJSON (InputArgument a) Source # | |
Defined in Hasura.RQL.Types.Function toJSON :: InputArgument a -> Value toEncoding :: InputArgument a -> Encoding toJSONList :: [InputArgument a] -> Value toEncodingList :: [InputArgument a] -> Encoding |
_IASessionVariables :: forall a. Prism' (InputArgument a) FunctionArgName Source #
_IAUserProvided :: forall a a. Prism (InputArgument a) (InputArgument a) a a Source #
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
fpmRole :: Iso' FunctionPermissionInfo RoleName Source #
type FunctionPermissionsMap = HashMap RoleName FunctionPermissionInfo Source #
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.
FunctionCustomRootFields | |
|
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
fiVolatility :: forall b. Lens' (FunctionInfo b) FunctionVolatility Source #
fiSystemDefined :: forall b. Lens' (FunctionInfo b) SystemDefined Source #
fiSQLName :: forall b. Lens' (FunctionInfo b) (FunctionName b) Source #
fiReturnType :: forall b. Lens' (FunctionInfo b) (TableName b) Source #
fiPermissions :: forall b. Lens' (FunctionInfo b) FunctionPermissionsMap Source #
fiJsonAggSelect :: forall b. Lens' (FunctionInfo b) JsonAggSelect Source #
fiInputArgs :: forall b. Lens' (FunctionInfo b) (Seq (FunctionInputArgument b)) Source #
fiGQLName :: forall b. Lens' (FunctionInfo b) Name Source #
fiGQLArgsName :: forall b. Lens' (FunctionInfo b) Name Source #
fiGQLAggregateName :: forall b. Lens' (FunctionInfo b) Name Source #
fiExposedAs :: forall b. Lens' (FunctionInfo b) FunctionExposedAs Source #
fiDescription :: forall b. Lens' (FunctionInfo b) (Maybe Text) Source #
fiComment :: forall b. Lens' (FunctionInfo b) (Maybe Text) Source #
getFunctionArgsGQLName Source #
:: Name | The GQL version of the DB name of the function |
-> FunctionConfig | |
-> (Name -> Name) | Custom function for setting naming case |
-> Name |
Apply function name customization to function arguments, as detailed in 'rfcs/function-root-field-customisation.md'. We want the different variations of a function (i.e. basic, aggregate) to share the same type name for their arguments.
:: Name | |
-> FunctionConfig | |
-> (Name -> Name) | Custom function for setting naming case |
-> Name |
Apply function name customization to the basic function variation, as detailed in 'rfcs/function-root-field-customisation.md'.
getFunctionAggregateGQLName Source #
:: Name | |
-> FunctionConfig | |
-> (Name -> Name) | Custom function for setting naming case |
-> Name |
Apply function name customization to the aggregate function variation, as detailed in 'rfcs/function-root-field-customisation.md'.
getInputArgs :: FunctionInfo b -> Seq (FunctionArgument b) Source #
type FunctionCache b = HashMap (FunctionName b) (FunctionInfo b) Source #
data FunctionConfig Source #
Tracked function configuration, and payload of the pg_track_function
and
pg_set_function_customization
API calls.
FunctionConfig | |
|
Instances
emptyFunctionConfig :: FunctionConfig Source #
The default function config; v1 of the API implies this.
type DBFunctionsMetadata b = HashMap (FunctionName b) [RawFunctionInfo b] Source #
data FunctionArgsExpG a Source #
FunctionArgsExp | |
|
Instances
type FunctionArgsExp b v = FunctionArgsExpG (FunctionArgumentExp b v) Source #