{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Hasura.Backends.Postgres.Instances.SchemaCache () where
import Hasura.RQL.Types.Backend
import Hasura.RQL.Types.SchemaCache.AggregationPredicates (defaultGetAggregationPredicateDeps)
import Hasura.RQL.Types.SchemaCacheTypes (GetAggregationPredicatesDeps (..))
import Hasura.SQL.Backend (BackendType (Postgres))
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]
forall (b :: BackendType).
(Backend b, GetAggregationPredicatesDeps b) =>
AggregationPredicatesImplementation b (PartialSQLExp b)
-> BoolExpM b [SchemaDependency]
defaultGetAggregationPredicateDeps