Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
DbStructure | |
|
Instances
queryDbStructure :: [Schema] -> [Schema] -> Bool -> Transaction DbStructure Source #
tablePKCols :: DbStructure -> Schema -> TableName -> [Text] Source #