graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
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

data SelectSlicing Source #

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

Constructors

SelectSlicing 

Instances

Instances details
Generic SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SelectSlicing :: Type -> Type #

Show SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq SelectSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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
Generic DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep DistinctAndOrderByExpr :: Type -> Type #

Show DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq DistinctAndOrderByExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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 #

Instances

Instances details
Generic SortingAndSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SortingAndSlicing :: Type -> Type #

Show SortingAndSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq SortingAndSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Hashable SortingAndSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SortingAndSlicing Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep SortingAndSlicing = D1 ('MetaData "SortingAndSlicing" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SortingAndSlicing" 'PrefixI 'True) (S1 ('MetaSel ('Just "_sasSorting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SelectSorting) :*: S1 ('MetaSel ('Just "_sasSlicing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SelectSlicing)))

data SelectSource Source #

Instances

Instances details
Generic SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep SelectSource :: Type -> Type #

Show SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq SelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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
Generic ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ObjectSelectSource :: Type -> Type #

Show ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq ObjectSelectSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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
Generic ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ObjectRelationSource :: Type -> Type #

Show ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq ObjectRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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) :*: S1 ('MetaSel ('Just "_orsNullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Nullable))))

data ArrayRelationSource Source #

Instances

Instances details
Generic ArrayRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ArrayRelationSource :: Type -> Type #

Show ArrayRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq ArrayRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Hashable ArrayRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ArrayRelationSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

type Rep ArrayRelationSource = D1 ('MetaData "ArrayRelationSource" "Hasura.Backends.Postgres.Translate.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ArrayRelationSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "_arsAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableAlias) :*: (S1 ('MetaSel ('Just "_arsRelationMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap PGCol PGCol)) :*: S1 ('MetaSel ('Just "_arsSelectSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SelectSource))))

data ComputedFieldTableSetSource Source #

Instances

Instances details
Generic ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ComputedFieldTableSetSource :: Type -> Type #

Show ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq ComputedFieldTableSetSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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
Generic ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Associated Types

type Rep ArrayConnectionSource :: Type -> Type #

Show ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

Eq ArrayConnectionSource Source # 
Instance details

Defined in Hasura.Backends.Postgres.Translate.Types

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)))))