summaryrefslogtreecommitdiff
path: root/temp-postgres.1
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2026-04-16 01:33:34 +0200
committerStefan Kreutz <mail@skreutz.com>2026-04-16 01:33:34 +0200
commitc3eb3d7264fd77ef88320251f910accd6df8164a (patch)
tree634a5aede635443235d04997030b17d498867695 /temp-postgres.1
parent803fc1e534a525a242f7c42c303817320897f73b (diff)
downloadtemp-postgres-c3eb3d7264fd77ef88320251f910accd6df8164a.tar.gz
Add --symlink option
Diffstat (limited to 'temp-postgres.1')
-rw-r--r--temp-postgres.120
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 ,
Generated by cgit. See skreutz.com for my tech blog and contact information.