module Hasura.NativeQuery.IR
( NativeQuery (..),
)
where
import Hasura.LogicalModel.IR
import Hasura.NativeQuery.Metadata
import Hasura.Prelude
import Hasura.RQL.Types.Backend
data NativeQuery b field = NativeQuery
{
forall (b :: BackendType) field.
NativeQuery b field -> NativeQueryName
nqRootFieldName :: NativeQueryName,
forall (b :: BackendType) field.
NativeQuery b field -> InterpolatedQuery field
nqInterpolatedQuery :: InterpolatedQuery field,
forall (b :: BackendType) field.
NativeQuery b field -> LogicalModel b
nqLogicalModel :: LogicalModel b
}
deriving ((forall a b. (a -> b) -> NativeQuery b a -> NativeQuery b b)
-> (forall a b. a -> NativeQuery b b -> NativeQuery b a)
-> Functor (NativeQuery b)
forall a b. a -> NativeQuery b b -> NativeQuery b a
forall a b. (a -> b) -> NativeQuery b a -> NativeQuery b b
forall (b :: BackendType) a b.
a -> NativeQuery b b -> NativeQuery b a
forall (b :: BackendType) a b.
(a -> b) -> NativeQuery b a -> NativeQuery b b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
$cfmap :: forall (b :: BackendType) a b.
(a -> b) -> NativeQuery b a -> NativeQuery b b
fmap :: forall a b. (a -> b) -> NativeQuery b a -> NativeQuery b b
$c<$ :: forall (b :: BackendType) a b.
a -> NativeQuery b b -> NativeQuery b a
<$ :: forall a b. a -> NativeQuery b b -> NativeQuery b a
Functor, (forall m. Monoid m => NativeQuery b m -> m)
-> (forall m a. Monoid m => (a -> m) -> NativeQuery b a -> m)
-> (forall m a. Monoid m => (a -> m) -> NativeQuery b a -> m)
-> (forall a b. (a -> b -> b) -> b -> NativeQuery b a -> b)
-> (forall a b. (a -> b -> b) -> b -> NativeQuery b a -> b)
-> (forall b a. (b -> a -> b) -> b -> NativeQuery b a -> b)
-> (forall b a. (b -> a -> b) -> b -> NativeQuery b a -> b)
-> (forall a. (a -> a -> a) -> NativeQuery b a -> a)
-> (forall a. (a -> a -> a) -> NativeQuery b a -> a)
-> (forall a. NativeQuery b a -> [a])
-> (forall a. NativeQuery b a -> Bool)
-> (forall a. NativeQuery b a -> Int)
-> (forall a. Eq a => a -> NativeQuery b a -> Bool)
-> (forall a. Ord a => NativeQuery b a -> a)
-> (forall a. Ord a => NativeQuery b a -> a)
-> (forall a. Num a => NativeQuery b a -> a)
-> (forall a. Num a => NativeQuery b a -> a)
-> Foldable (NativeQuery b)
forall a. Eq a => a -> NativeQuery b a -> Bool
forall a. Num a => NativeQuery b a -> a
forall a. Ord a => NativeQuery b a -> a
forall m. Monoid m => NativeQuery b m -> m
forall a. NativeQuery b a -> Bool
forall a. NativeQuery b a -> Int
forall a. NativeQuery b a -> [a]
forall a. (a -> a -> a) -> NativeQuery b a -> a
forall m a. Monoid m => (a -> m) -> NativeQuery b a -> m
forall b a. (b -> a -> b) -> b -> NativeQuery b a -> b
forall a b. (a -> b -> b) -> b -> NativeQuery b a -> b
forall (b :: BackendType) a. Eq a => a -> NativeQuery b a -> Bool
forall (b :: BackendType) a. Num a => NativeQuery b a -> a
forall (b :: BackendType) a. Ord a => NativeQuery b a -> a
forall (b :: BackendType) m. Monoid m => NativeQuery b m -> m
forall (b :: BackendType) a. NativeQuery b a -> Bool
forall (b :: BackendType) a. NativeQuery b a -> Int
forall (b :: BackendType) a. NativeQuery b a -> [a]
forall (b :: BackendType) a. (a -> a -> a) -> NativeQuery b a -> a
forall (b :: BackendType) m a.
Monoid m =>
(a -> m) -> NativeQuery b a -> m
forall (b :: BackendType) b a.
(b -> a -> b) -> b -> NativeQuery b a -> b
forall (b :: BackendType) a b.
(a -> b -> b) -> b -> NativeQuery b a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
$cfold :: forall (b :: BackendType) m. Monoid m => NativeQuery b m -> m
fold :: forall m. Monoid m => NativeQuery b m -> m
$cfoldMap :: forall (b :: BackendType) m a.
Monoid m =>
(a -> m) -> NativeQuery b a -> m
foldMap :: forall m a. Monoid m => (a -> m) -> NativeQuery b a -> m
$cfoldMap' :: forall (b :: BackendType) m a.
Monoid m =>
(a -> m) -> NativeQuery b a -> m
foldMap' :: forall m a. Monoid m => (a -> m) -> NativeQuery b a -> m
$cfoldr :: forall (b :: BackendType) a b.
(a -> b -> b) -> b -> NativeQuery b a -> b
foldr :: forall a b. (a -> b -> b) -> b -> NativeQuery b a -> b
$cfoldr' :: forall (b :: BackendType) a b.
(a -> b -> b) -> b -> NativeQuery b a -> b
foldr' :: forall a b. (a -> b -> b) -> b -> NativeQuery b a -> b
$cfoldl :: forall (b :: BackendType) b a.
(b -> a -> b) -> b -> NativeQuery b a -> b
foldl :: forall b a. (b -> a -> b) -> b -> NativeQuery b a -> b
$cfoldl' :: forall (b :: BackendType) b a.
(b -> a -> b) -> b -> NativeQuery b a -> b
foldl' :: forall b a. (b -> a -> b) -> b -> NativeQuery b a -> b
$cfoldr1 :: forall (b :: BackendType) a. (a -> a -> a) -> NativeQuery b a -> a
foldr1 :: forall a. (a -> a -> a) -> NativeQuery b a -> a
$cfoldl1 :: forall (b :: BackendType) a. (a -> a -> a) -> NativeQuery b a -> a
foldl1 :: forall a. (a -> a -> a) -> NativeQuery b a -> a
$ctoList :: forall (b :: BackendType) a. NativeQuery b a -> [a]
toList :: forall a. NativeQuery b a -> [a]
$cnull :: forall (b :: BackendType) a. NativeQuery b a -> Bool
null :: forall a. NativeQuery b a -> Bool
$clength :: forall (b :: BackendType) a. NativeQuery b a -> Int
length :: forall a. NativeQuery b a -> Int
$celem :: forall (b :: BackendType) a. Eq a => a -> NativeQuery b a -> Bool
elem :: forall a. Eq a => a -> NativeQuery b a -> Bool
$cmaximum :: forall (b :: BackendType) a. Ord a => NativeQuery b a -> a
maximum :: forall a. Ord a => NativeQuery b a -> a
$cminimum :: forall (b :: BackendType) a. Ord a => NativeQuery b a -> a
minimum :: forall a. Ord a => NativeQuery b a -> a
$csum :: forall (b :: BackendType) a. Num a => NativeQuery b a -> a
sum :: forall a. Num a => NativeQuery b a -> a
$cproduct :: forall (b :: BackendType) a. Num a => NativeQuery b a -> a
product :: forall a. Num a => NativeQuery b a -> a
Foldable, Functor (NativeQuery b)
Foldable (NativeQuery b)
Functor (NativeQuery b)
-> Foldable (NativeQuery b)
-> (forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> NativeQuery b a -> f (NativeQuery b b))
-> (forall (f :: * -> *) a.
Applicative f =>
NativeQuery b (f a) -> f (NativeQuery b a))
-> (forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> NativeQuery b a -> m (NativeQuery b b))
-> (forall (m :: * -> *) a.
Monad m =>
NativeQuery b (m a) -> m (NativeQuery b a))
-> Traversable (NativeQuery b)
forall (b :: BackendType). Functor (NativeQuery b)
forall (b :: BackendType). Foldable (NativeQuery b)
forall (b :: BackendType) (m :: * -> *) a.
Monad m =>
NativeQuery b (m a) -> m (NativeQuery b a)
forall (b :: BackendType) (f :: * -> *) a.
Applicative f =>
NativeQuery b (f a) -> f (NativeQuery b a)
forall (b :: BackendType) (m :: * -> *) a b.
Monad m =>
(a -> m b) -> NativeQuery b a -> m (NativeQuery b b)
forall (b :: BackendType) (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> NativeQuery b a -> f (NativeQuery b b)
forall (t :: * -> *).
Functor t
-> Foldable t
-> (forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> t a -> f (t b))
-> (forall (f :: * -> *) a. Applicative f => t (f a) -> f (t a))
-> (forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> t a -> m (t b))
-> (forall (m :: * -> *) a. Monad m => t (m a) -> m (t a))
-> Traversable t
forall (m :: * -> *) a.
Monad m =>
NativeQuery b (m a) -> m (NativeQuery b a)
forall (f :: * -> *) a.
Applicative f =>
NativeQuery b (f a) -> f (NativeQuery b a)
forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> NativeQuery b a -> m (NativeQuery b b)
forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> NativeQuery b a -> f (NativeQuery b b)
$ctraverse :: forall (b :: BackendType) (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> NativeQuery b a -> f (NativeQuery b b)
traverse :: forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> NativeQuery b a -> f (NativeQuery b b)
$csequenceA :: forall (b :: BackendType) (f :: * -> *) a.
Applicative f =>
NativeQuery b (f a) -> f (NativeQuery b a)
sequenceA :: forall (f :: * -> *) a.
Applicative f =>
NativeQuery b (f a) -> f (NativeQuery b a)
$cmapM :: forall (b :: BackendType) (m :: * -> *) a b.
Monad m =>
(a -> m b) -> NativeQuery b a -> m (NativeQuery b b)
mapM :: forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> NativeQuery b a -> m (NativeQuery b b)
$csequence :: forall (b :: BackendType) (m :: * -> *) a.
Monad m =>
NativeQuery b (m a) -> m (NativeQuery b a)
sequence :: forall (m :: * -> *) a.
Monad m =>
NativeQuery b (m a) -> m (NativeQuery b a)
Traversable)
deriving instance (Backend b, Eq field) => Eq (NativeQuery b field)
deriving instance (Backend b, Show field) => Show (NativeQuery b field)