Skip to content

Commit

Permalink
Update README for bindings db
Browse files Browse the repository at this point in the history
Signed-off-by: sunzhaochang <[email protected]>
  • Loading branch information
sunzhaochang committed Jul 14, 2022
1 parent a709040 commit 4f72d3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings/db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This quickstart uses a specific sample database called `postgres` to back up orders data.

The database is implemented using the official base [`postgres`](https://hub.docker.com/_/postgres) container image as a base and customizing it to initialize using the SQL script in `orders.sql`. For convience, building, running, and setting of customizable environment variables (e.g. DB name and password) is handled in the `docker-compose.yaml` file.
The database is implemented using the official base [`postgres`](https://hub.docker.com/_/postgres) container image as a base and customizing it to initialize using the SQL script in `orders.sql`. For convenience, building, running, and setting of customizable environment variables (e.g. DB name and password) is handled in the `docker-compose.yml` file.

To start the database simply run the following in this folder:
```bash
Expand All @@ -14,14 +14,14 @@ To explore the database using the interactive CLI run:
docker exec -i -t postgres psql --username postgres -p 5432 -h localhost --no-password
```

At the prompt change to the `orders` table with:
At the prompt change to the `orders` database with:
```bash
\c tables;
\c orders;
```

Explore data using:
```bash
select * from orders
select * from orders;
```
To clean up, CTRL-C the terminal or run:
Expand Down

0 comments on commit 4f72d3a

Please sign in to comment.