From 1b9a30cff45e9d511dbe2e4cb852b5bb21214252 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 23 Jan 2022 11:24:21 +0100 Subject: [PATCH] Make db-uri, db-schemas and db-anon-role optional in example config file --- src/PostgREST/CLI.hs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/PostgREST/CLI.hs b/src/PostgREST/CLI.hs index c29cc4dc1..4cc348fac 100644 --- a/src/PostgREST/CLI.hs +++ b/src/PostgREST/CLI.hs @@ -125,12 +125,16 @@ readCLIShowHelp = exampleConfigFile :: [Char] exampleConfigFile = - [str|### REQUIRED: - |db-uri = "postgres://user:pass@localhost:5432/dbname" - |db-schema = "public" - |db-anon-role = "postgres" + [str|## The standard connection URI format, documented at + |## https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING + |db-uri = "postgresql://" + | + |## The name of which database schema to expose to REST clients + |db-schemas = "public" + | + |## The database role to use when no client authentication is provided + |# db-anon-role = "anon" | - |### OPTIONAL: |## Number of open connections in the pool |db-pool = 10 |