diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 01:33:34 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 01:33:34 +0200 |
| commit | c3eb3d7264fd77ef88320251f910accd6df8164a (patch) | |
| tree | 634a5aede635443235d04997030b17d498867695 /temp-postgres.1 | |
| parent | 803fc1e534a525a242f7c42c303817320897f73b (diff) | |
| download | temp-postgres-c3eb3d7264fd77ef88320251f910accd6df8164a.tar.gz | |
Add --symlink option
Diffstat (limited to 'temp-postgres.1')
| -rw-r--r-- | temp-postgres.1 | 20 |
1 files changed, 13 insertions, 7 deletions
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 , |