Skip to content

Commit be95db4

Browse files
authored
Update README.md
1 parent 5655dfc commit be95db4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Basic/flow-database-access/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Flow Database Access CorDapp [<img src="../../webIDE.png" height=25 />](https://ide.corda.net/?folder=/home/coder/samples-java/Basic/flow-database-access)
2-
1+
# Flow Database Access CorDapp
32
This CorDapp provides a simple example of how the node database can be accessed in flows using a [JDBC Connection](https://docs.corda.net/docs/corda-os/api-persistence.html#jdbc-session). In this case, the flows
43
maintain a table of cryptocurrency values in the node's database.
54

@@ -8,13 +7,7 @@ maintain a table of cryptocurrency values in the node's database.
87

98
### Flows
109

11-
The CorDapp defines three flows:
12-
13-
* `AddTokenValueFlow`, [which adds a new token to the database table with an initial value](./workflows-java/src/main/java/net/corda/samples/flowdb/AddTokenValueFlow.java#L34-L48)
14-
* `UpdateTokenValueFlow`, [which updates the value of an existing token in the database table](./workflows-java/src/main/java/net/corda/samples/flowdb/UpdateTokenValueFlow.java#L34-L42)
15-
* `QueryTokenValueFlow`, [which reads the value of an existing token from the database table](./workflows-java/src/main/java/net/corda/samples/flowdb/QueryTokenValueFlow.java#L32-L40)
16-
17-
Under the hood, the database accesses are managed by the CryptoValuesDatabaseService [CordaService](https://training.corda.net/corda-details/automation/#services).
10+
The CorDapp defines three flows: `AddTokenValueFlow`, `UpdateTokenValueFlow`, and `QueryTokenValueFlow`. Under the hood, the database accesses are managed by the CryptoValuesDatabaseService [CordaService](https://training.corda.net/corda-details/automation/#services).
1811

1912
Be aware that support of database accesses in flows is currently limited:
2013

0 commit comments

Comments
 (0)