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 /README.md | |
| parent | 803fc1e534a525a242f7c42c303817320897f73b (diff) | |
| download | temp-postgres-c3eb3d7264fd77ef88320251f910accd6df8164a.tar.gz | |
Add --symlink option
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -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 |