graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.Postgres.Translate.Types

Description

Postgres Translate Types

Intermediary / helper types used for translating IR to Postgres SQL.

Synopsis

Documentation

data SourcePrefixes Source #

Constructors

SourcePrefixes 

Fields

  • _pfThis :: Identifier

    Current source prefix

  • _pfBase :: Identifier

    Base table source row identifier to generate the table's column identifiers for computed field function input parameters

Instances

Instances details
Eq SourcePrefixes Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show SourcePrefixes Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic SourcePrefixes Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SourcePrefixes :: Type -> Type #

Hashable SourcePrefixes Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SourcePrefixes Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SourcePrefixes = D1 ('MetaData "SourcePrefixes" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SourcePrefixes" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pfThis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Identifier) :*: S1 ('MetaSel ('Just "_pfBase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Identifier)))

data SelectSlicing Source #

Select portion of rows generated by the query using limit and offset

Constructors

SelectSlicing 

Instances

Instances details
Eq SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SelectSlicing :: Type -> Type #

Hashable SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SelectSlicing = D1 ('MetaData "SelectSlicing" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SelectSlicing" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ssLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_ssOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int64))))

data DistinctAndOrderByExpr Source #

Instances

Instances details
Eq DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep DistinctAndOrderByExpr :: Type -> Type #

Hashable DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep DistinctAndOrderByExpr = D1 ('MetaData "DistinctAndOrderByExpr" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ASorting" 'PrefixI 'True) (S1 ('MetaSel ('Just "_sortAtNode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (OrderByExp, Maybe DistinctExpr)) :*: S1 ('MetaSel ('Just "_sortAtBase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (OrderByExp, Maybe DistinctExpr)))))

data SelectSorting Source #

Sorting with -- Note [Optimizing queries using limit/offset])

data SortingAndSlicing Source #

data SelectSource Source #

Instances

Instances details
Eq SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SelectSource :: Type -> Type #

Hashable SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SelectSource = D1 ('MetaData "SelectSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SelectSource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_ssPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Identifier) :*: S1 ('MetaSel ('Just "_ssFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FromItem)) :*: (S1 ('MetaSel ('Just "_ssWhere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BoolExp) :*: S1 ('MetaSel ('Just "_ssSortingAndSlicing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SortingAndSlicing))))

data ObjectSelectSource Source #

Instances

Instances details
Eq ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ObjectSelectSource :: Type -> Type #

Hashable ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ObjectSelectSource = D1 ('MetaData "ObjectSelectSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ObjectSelectSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ossPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Identifier) :*: (S1 ('MetaSel ('Just "_ossFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FromItem) :*: S1 ('MetaSel ('Just "_ossWhere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BoolExp))))

data ObjectRelationSource Source #

Instances

Instances details
Eq ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ObjectRelationSource :: Type -> Type #

Hashable ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ObjectRelationSource = D1 ('MetaData "ObjectRelationSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ObjectRelationSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "_orsRelationshipName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelName) :*: (S1 ('MetaSel ('Just "_orsRelationMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap PGCol PGCol)) :*: S1 ('MetaSel ('Just "_orsSelectSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectSelectSource))))

data ArrayRelationSource Source #

data ComputedFieldTableSetSource Source #

Instances

Instances details
Eq ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Show ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ComputedFieldTableSetSource :: Type -> Type #

Hashable ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ComputedFieldTableSetSource = D1 ('MetaData "ComputedFieldTableSetSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldTableSetSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cftssFieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "_cftssSelectSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SelectSource)))

data ArrayConnectionSource Source #

Instances

Instances details
Eq ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Generic ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ArrayConnectionSource :: Type -> Type #

Hashable ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ArrayConnectionSource = D1 ('MetaData "ArrayConnectionSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ArrayConnectionSource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_acsAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableAlias) :*: S1 ('MetaSel ('Just "_acsRelationMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap PGCol PGCol))) :*: (S1 ('MetaSel ('Just "_acsSplitFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BoolExp)) :*: (S1 ('MetaSel ('Just "_acsSlice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConnectionSlice)) :*: S1 ('MetaSel ('Just "_acsSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SelectSource)))))