graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.Postgres.Types.Aggregates

Synopsis

Documentation

newtype CountAggregate pgKind v Source #

This newtype allows us to reuse CountType for the CountType type family We reuse the overall structure, but our column type is a PGCol column name, plus the column redaction expression used by inherited roles. See [SQL generation for inherited roles] for more information about column redaction

Constructors

CountAggregate 

Instances

Instances details
Backend ('Postgres pgKind) => Foldable (CountAggregate pgKind) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Methods

fold :: Monoid m => CountAggregate pgKind m -> m #

foldMap :: Monoid m => (a -> m) -> CountAggregate pgKind a -> m #

foldMap' :: Monoid m => (a -> m) -> CountAggregate pgKind a -> m #

foldr :: (a -> b -> b) -> b -> CountAggregate pgKind a -> b #

foldr' :: (a -> b -> b) -> b -> CountAggregate pgKind a -> b #

foldl :: (b -> a -> b) -> b -> CountAggregate pgKind a -> b #

foldl' :: (b -> a -> b) -> b -> CountAggregate pgKind a -> b #

foldr1 :: (a -> a -> a) -> CountAggregate pgKind a -> a #

foldl1 :: (a -> a -> a) -> CountAggregate pgKind a -> a #

toList :: CountAggregate pgKind a -> [a] #

null :: CountAggregate pgKind a -> Bool #

length :: CountAggregate pgKind a -> Int #

elem :: Eq a => a -> CountAggregate pgKind a -> Bool #

maximum :: Ord a => CountAggregate pgKind a -> a #

minimum :: Ord a => CountAggregate pgKind a -> a #

sum :: Num a => CountAggregate pgKind a -> a #

product :: Num a => CountAggregate pgKind a -> a #

Backend ('Postgres pgKind) => Traversable (CountAggregate pgKind) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Methods

traverse :: Applicative f => (a -> f b) -> CountAggregate pgKind a -> f (CountAggregate pgKind b) #

sequenceA :: Applicative f => CountAggregate pgKind (f a) -> f (CountAggregate pgKind a) #

mapM :: Monad m => (a -> m b) -> CountAggregate pgKind a -> m (CountAggregate pgKind b) #

sequence :: Monad m => CountAggregate pgKind (m a) -> m (CountAggregate pgKind a) #

Backend ('Postgres pgKind) => Functor (CountAggregate pgKind) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Methods

fmap :: (a -> b) -> CountAggregate pgKind a -> CountAggregate pgKind b #

(<$) :: a -> CountAggregate pgKind b -> CountAggregate pgKind a #

Generic (CountAggregate pgKind v) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Associated Types

type Rep (CountAggregate pgKind v) :: Type -> Type #

Methods

from :: CountAggregate pgKind v -> Rep (CountAggregate pgKind v) x #

to :: Rep (CountAggregate pgKind v) x -> CountAggregate pgKind v #

(Backend ('Postgres pgKind), Show (AnnRedactionExp ('Postgres pgKind) v), Show v) => Show (CountAggregate pgKind v) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Methods

showsPrec :: Int -> CountAggregate pgKind v -> ShowS #

show :: CountAggregate pgKind v -> String #

showList :: [CountAggregate pgKind v] -> ShowS #

(Backend ('Postgres pgKind), Eq (AnnRedactionExp ('Postgres pgKind) v), Eq v) => Eq (CountAggregate pgKind v) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

Methods

(==) :: CountAggregate pgKind v -> CountAggregate pgKind v -> Bool #

(/=) :: CountAggregate pgKind v -> CountAggregate pgKind v -> Bool #

type Rep (CountAggregate pgKind v) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Aggregates

type Rep (CountAggregate pgKind v) = D1 ('MetaData "CountAggregate" "Hasura.Backends.Postgres.Types.Aggregates" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "CountAggregate" 'PrefixI 'True) (S1 ('MetaSel ('Just "getCountType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (CountType (PGCol, AnnRedactionExp ('Postgres pgKind) v)))))