From c3eb3d7264fd77ef88320251f910accd6df8164a Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Thu, 16 Apr 2026 01:33:34 +0200 Subject: Add --symlink option --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 92990f5..51ccdc8 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,6 @@ Create and serve a temporary database: temp-postgres ``` -Specify a database name, and PostgreSQL user name: - -```sh -temp-postgres --dbname myproject --username alex -``` - Wrap the `psql` command to connect to the temporary database once the server is ready: ```sh @@ -44,6 +38,20 @@ platform = { host = 'cfg(unix)' } run-wrapper = 'temp-postgres' ``` +Set up a symlink to enable static client configuration: + +```sh +temp-postgres --symlink ./db +psql --host "$(realpath ./db)" +``` + +Specify a database name, and PostgreSQL user name: + +```sh +temp-postgres --dbname myproject --username alex +``` + + See the manual page for details. ## Dependencies -- cgit v1.3