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 --- temp-postgres.1 | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'temp-postgres.1') diff --git a/temp-postgres.1 b/temp-postgres.1 index 324a2f1..94f13cd 100644 --- a/temp-postgres.1 +++ b/temp-postgres.1 @@ -69,19 +69,25 @@ and the .Sh EXAMPLES Create and serve a temporary database: .Bd -literal -offset indent -$ temp-postgres -.Ed -.Pp -Specify a database name, and PostgreSQL user name: -.Bd -literal -offset indent -$ temp-postgres --dbname myproject --username alex +temp-postgres .Ed .Pp Wrap the .Xr psql 1 command to connect to the temporary database once the server is ready: .Bd -literal -offset indent -$ temp-postgres -- psql +temp-postgres -- psql +.Ed +.Pp +Set up a symlink to enable static client configuration: +.Bd -literal -offset indent +temp-postgres --symlink ./db +psql --host "$(realpath ./db)" +.Ed +.Pp +Specify a database name, and PostgreSQL user name: +.Bd -literal -offset indent +temp-postgres --dbname myproject --username alex .Ed .Sh SEE ALSO .Xr postgres 1 , -- cgit v1.3