Skip to content

Commit 10e93b9

Browse files
authored
Update README with connection to db via psql
For newbies <-- it would be great to have a clear example of how to connect to the database and see the schema. This is essential I would say to later than see how the impact of a change in `current.sql` will take immediate effect (i.e. migration happening in realtime).
1 parent 6580e97 commit 10e93b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ and may make it harder to reproduce issues.
4646
run
4747
[docker-volume-watcher](https://github.com/merofeev/docker-windows-volume-watcher)
4848

49+
#### DB tool:
50+
51+
To connect to the newly created container db with psql/{db tool} you connect to it by default if not anything else specified via port 6543 on localhost with the `DATABASE_NAME` specificed as such:
52+
53+
```bash
54+
$ psql postgres://$DATABASE_NAME@localhost:6543
55+
```
56+
4957
#### Use Case Example:
5058

5159
> Attach to `dev`, run `yarn db commit` to commit the latest migration, then

0 commit comments

Comments
 (0)