PgRest.Catalog.Facts (PgRest v0.3.0)

Copy Markdown View Source

Server-wide facts PgRest.Catalog.facts/1 reads once per repo: the timezone names Prefer: timezone accepts, the server version, whether the login role bypasses RLS, the ALTER ROLE ... SET settings of the roles it may switch to (%{role => [{name, value}]}), and postgis: %{schema: schema, version: version} of the PostGIS extension, nil without it (application/geo+json is offered only when it is set).

Summary

Types

t()

@type t() :: %PgRest.Catalog.Facts{
  bypasses_rls?: boolean(),
  postgis: %{schema: String.t(), version: String.t()} | nil,
  role_settings: %{required(String.t()) => [{String.t(), String.t()}]},
  server_version_num: pos_integer(),
  timezones: MapSet.t(String.t())
}