Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Provenance
- data UnpreparedValue (b :: BackendType)
- data ValueWithOrigin a
- openValueOrigin :: ValueWithOrigin a -> a
- mkParameter :: ValueWithOrigin (ColumnValue b) -> UnpreparedValue b
Documentation
data Provenance Source #
Where did this variable come from?
FromGraphQL VariableInfo | |
FromInternal Text | An internal source |
FreshVar | A unique, fresh occurrence of a variable. E.g. a native query argument, or generated values that benefit from being prepared rather than inlined. |
Instances
Show Provenance Source # | |
Defined in Hasura.RQL.IR.Value showsPrec :: Int -> Provenance -> ShowS # show :: Provenance -> String # showList :: [Provenance] -> ShowS # | |
Eq Provenance Source # | |
Defined in Hasura.RQL.IR.Value (==) :: Provenance -> Provenance -> Bool # (/=) :: Provenance -> Provenance -> Bool # |
data UnpreparedValue (b :: BackendType) Source #
UVParameter Provenance (ColumnValue b) | A SQL value that can be parameterized over. |
UVLiteral (SQLExpression b) | A literal SQL expression that cannot be parameterized over. |
UVSession | The entire session variables JSON object. |
UVSessionVar (SessionVarType b) SessionVariable | A single session variable. |
Instances
(Backend b, Show (ColumnValue b)) => Show (UnpreparedValue b) Source # | |
Defined in Hasura.RQL.IR.Value showsPrec :: Int -> UnpreparedValue b -> ShowS # show :: UnpreparedValue b -> String # showList :: [UnpreparedValue b] -> ShowS # | |
(Backend b, Eq (ColumnValue b)) => Eq (UnpreparedValue b) Source # | |
Defined in Hasura.RQL.IR.Value (==) :: UnpreparedValue b -> UnpreparedValue b -> Bool # (/=) :: UnpreparedValue b -> UnpreparedValue b -> Bool # |
data ValueWithOrigin a Source #
This indicates whether a variable value came from a certain GraphQL variable
Instances
Functor ValueWithOrigin Source # | |
Defined in Hasura.RQL.IR.Value fmap :: (a -> b) -> ValueWithOrigin a -> ValueWithOrigin b # (<$) :: a -> ValueWithOrigin b -> ValueWithOrigin a # |
openValueOrigin :: ValueWithOrigin a -> a Source #
mkParameter :: ValueWithOrigin (ColumnValue b) -> UnpreparedValue b Source #