postgrest-8.0.0: REST API for any Postgres database
Safe HaskellNone
LanguageHaskell2010

PostgREST.DbStructure

Description

This module contains queries that target PostgreSQL system catalogs, these are used to build the schema cache(DbStructure).

The schema cache is necessary for resource embedding, foreign keys are used for inferring the relationships between tables.

These queries are executed once at startup or when PostgREST is reloaded.

Documentation

data DbStructure Source #

Instances

Instances details
Generic DbStructure Source # 
Instance details

Defined in PostgREST.DbStructure

Associated Types

type Rep DbStructure :: Type -> Type #

ToJSON DbStructure Source # 
Instance details

Defined in PostgREST.DbStructure

type Rep DbStructure Source # 
Instance details

Defined in PostgREST.DbStructure

type Rep DbStructure = D1 ('MetaData "DbStructure" "PostgREST.DbStructure" "postgrest-8.0.0-4wwkfqOKlk5GjHJ3yFP36o" 'False) (C1 ('MetaCons "DbStructure" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dbTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Table]) :*: S1 ('MetaSel ('Just "dbColumns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Column])) :*: (S1 ('MetaSel ('Just "dbRelationships") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Relationship]) :*: (S1 ('MetaSel ('Just "dbPrimaryKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PrimaryKey]) :*: S1 ('MetaSel ('Just "dbProcs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProcsMap)))))