diff options
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 , |