summaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
parent803fc1e534a525a242f7c42c303817320897f73b (diff)
downloadtemp-postgres-c3eb3d7264fd77ef88320251f910accd6df8164a.tar.gz
Add --symlink option
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 14 insertions, 6 deletions
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
Generated by cgit. See skreutz.com for my tech blog and contact information.