| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hasura.RQL.IR.Value
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?
Constructors
| 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 Methods showsPrec :: Int -> Provenance -> ShowS # show :: Provenance -> String # showList :: [Provenance] -> ShowS # | |
| Eq Provenance Source # | |
Defined in Hasura.RQL.IR.Value | |
data UnpreparedValue (b :: BackendType) Source #
Constructors
| 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 Methods 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 Methods (==) :: 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
Constructors
| ValueWithOrigin VariableInfo a | |
| ValueNoOrigin a |
Instances
| Functor ValueWithOrigin Source # | |
Defined in Hasura.RQL.IR.Value Methods fmap :: (a -> b) -> ValueWithOrigin a -> ValueWithOrigin b # (<$) :: a -> ValueWithOrigin b -> ValueWithOrigin a # | |
openValueOrigin :: ValueWithOrigin a -> a Source #
mkParameter :: ValueWithOrigin (ColumnValue b) -> UnpreparedValue b Source #