{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Hasura.Backends.Postgres.Instances.SchemaCache () where
import Hasura.RQL.Types.Backend
import Hasura.RQL.Types.BackendType (BackendType (Postgres))
import Hasura.RQL.Types.SchemaCache.AggregationPredicates (defaultGetAggregationPredicateDeps)
import Hasura.RQL.Types.SchemaCacheTypes (GetAggregationPredicatesDeps (..))
instance (Backend ('Postgres pgKind)) => GetAggregationPredicatesDeps ('Postgres pgKind) where
getAggregationPredicateDeps :: AggregationPredicates
('Postgres pgKind) (PartialSQLExp ('Postgres pgKind))
-> BoolExpM ('Postgres pgKind) [SchemaDependency]
getAggregationPredicateDeps = AggregationPredicates
('Postgres pgKind) (PartialSQLExp ('Postgres pgKind))
-> BoolExpM ('Postgres pgKind) [SchemaDependency]
AggregationPredicatesImplementation
('Postgres pgKind) (PartialSQLExp ('Postgres pgKind))
-> BoolExpM ('Postgres pgKind) [SchemaDependency]
forall (b :: BackendType).
GetAggregationPredicatesDeps b =>
AggregationPredicatesImplementation b (PartialSQLExp b)
-> BoolExpM b [SchemaDependency]
defaultGetAggregationPredicateDeps