Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data UnpreparedValue (b :: BackendType)
- = UVParameter (Maybe VariableInfo) (ColumnValue b)
- | UVLiteral (SQLExpression b)
- | UVSession
- | UVSessionVar (SessionVarType b) SessionVariable
- data ValueWithOrigin a
- openValueOrigin :: ValueWithOrigin a -> a
- mkParameter :: ValueWithOrigin (ColumnValue b) -> UnpreparedValue b
Documentation
data UnpreparedValue (b :: BackendType) Source #
UVParameter | 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, Eq (ColumnValue b), Eq (ScalarValue b)) => Eq (UnpreparedValue b) Source # | |
Defined in Hasura.RQL.IR.Value (==) :: UnpreparedValue b -> UnpreparedValue b -> Bool # (/=) :: UnpreparedValue b -> UnpreparedValue b -> Bool # | |
(Backend b, Show (ColumnValue b), Show (ScalarValue b)) => Show (UnpreparedValue b) Source # | |
Defined in Hasura.RQL.IR.Value showsPrec :: Int -> UnpreparedValue b -> ShowS # show :: UnpreparedValue b -> String # showList :: [UnpreparedValue b] -> ShowS # |
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 #