Skip to content

Commit de2729d

Browse files
authored
Merge pull request #75 from divya-r3/postgre
Update Readme for Postgre sample
2 parents c3254c6 + dad66c4 commit de2729d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Features/postgres-cordapp/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Postgres Cordapp
1+
# Postgres Cordapp
22

3-
This application will demonstrate to you how to run corda with a postgres or other custom database.
4-
The cordapp being used is another copy of the yo cordapp, as the majority of the work here is in simply configuring the sql database connection.
3+
The latest versions of Corda Open Source support H2 and Postgres.H2 is the default database while this application will
4+
demonstrate to you how to run corda with a postgres. The cordapp being used is another copy of the yo cordapp, as the
5+
majority of the work here is in simply configuring the sql database connection.
56

67
## Pre-Requisites
78

@@ -26,7 +27,6 @@ cat config.sql | docker exec -i postgres_for_corda psql -h localhost -p 5432 -U
2627

2728
You can then look for the shell for PartyA and run your flows.
2829

29-
3030
```sh
3131
Thu Apr 22 13:03:05 EDT 2021>>> flow start net.corda.samples.postgres.flows.YoFlow target: PartyB
3232

@@ -43,9 +43,8 @@ Thu Apr 22 13:03:05 EDT 2021>>> flow start net.corda.samples.postgres.flows.YoFl
4343
Flow completed with result: SignedTransaction(id=8B3FC06F685FC8FFD29001CC6205DAECBFF436E28E0439F74F5A89D11372C578)
4444
```
4545

46-
47-
4846
### useful commands for interacting with your postgres container
47+
4948
Here's a couple convenient postgres commands to get you started.
5049

5150
```sh
@@ -61,7 +60,8 @@ docker exec -i postgres_for_corda psql -U postgres -p 5432 -h localhost postgres
6160

6261
### Connencting to your database with dbeaver
6362

64-
You can connect to your db with all kinds of tools like dbeaver, just open up a new connection, specify `postgreSQL` in the search bar.
63+
You can connect to your db with all kinds of tools like dbeaver, just open up a new connection, specify `postgreSQL` in
64+
the search bar.
6565

6666
The default username we provided in the command above is `postgres` and the password is `test`.
6767

@@ -77,10 +77,11 @@ FROM information_schema.schemata;
7777

7878
![](./img/config-2.png)
7979

80-
81-
8280
### Troubleshooting
83-
You may run into some errors about node identity when running 'deployNodes', this is because the database will already have the node information, so you will want to make sure to clear the database contents so that you don't run into issues when recompiling the nodes.
81+
82+
You may run into some errors about node identity when running 'deployNodes', this is because the database will already
83+
have the node information, so you will want to make sure to clear the database contents so that you don't run into
84+
issues when recompiling the nodes.
8485

8586
## Additional Resources
8687

0 commit comments

Comments
 (0)