Skip to content

Commit

Permalink
docs: remove schema cache dep from Query
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Apr 11, 2024
1 parent 4bcd672 commit b881912
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
19 changes: 11 additions & 8 deletions docs/_diagrams/arch.uml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,34 @@ package "PostgREST" {
[Plan] -r.> [Query]
[Query] - () "Connection Pool" : "\t"
[Plan] -u-> [Schema Cache]:uses
[Query] -u-> [Schema Cache]:uses
[Schema Cache] <- () Listener : reloads

() HTTP as HTTPADMIN
[Admin] -r- () HTTPADMIN
[Config] -l- () CLI
HTTPADMIN -[hidden]r- CLI

[Config] <-l~ Listener

HTTPADMIN -[hidden]r- CLI
Listener -[hidden]r- [Schema Cache]
[Schema Cache] <-l[hidden]- [Config]
Listener -[hidden]r- [Config]
[Schema Cache] -l[hidden]- [Config]
[Schema Cache] -l[hidden]- [Admin]
[Config] <-l~ Listener
[Schema Cache] -l[hidden]- CLI
}


database "PostgreSQL" {
node "API schema" as API {
rectangle "Functions, Views"
}
node Authorization {
rectangle "Roles, GRANT, RLS"
}
node API {
rectangle "Functions, Views"
}
rectangle "Tables, extensions" as tbs
API -d- tbs
Authorization -d- tbs

API -[hidden]l- Authorization
}

:user:
Expand Down
Binary file modified docs/_static/arch.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/PostgREST/ApiRequest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description : PostgREST functions to translate HTTP request to a domain type cal
-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}

-- TODO: This module shouldn't depend on SchemaCache
module PostgREST.ApiRequest
( ApiRequest(..)
, InvokeMethod(..)
Expand Down
1 change: 1 addition & 0 deletions src/PostgREST/Query.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
-- TODO: This module shouldn't depend on SchemaCache
module PostgREST.Query
( QueryResult (..)
, runQuery
Expand Down

0 comments on commit b881912

Please sign in to comment.