-
Notifications
You must be signed in to change notification settings - Fork 7
ModificationResponse
Dmitry Kochin edited this page Jul 13, 2018
·
3 revisions
ModificationResponse contains the results of inserting/updating entries. It contains result for each entry identified by EntryHash (the keccack256 hash of the corresponding EntryHeader).
An example of ModificationResult.
<ModificationResponse type="m">
<!-- The Id of the request this response is for -->
<MessageId type="u">1</MessageId>
<!-- The success of modification of the Entry with the specified hash -->
<ModificationResult type="m">
<EntryHash type="b">520ee79fcb0abf0734409aa3dc5ee2ab69bab76bdd24e7a46a01250dc2a09f29</EntryHash>
</ModificationResult>
<!-- The error of modification of the Entry with the specified hash -->
<ModificationError type="m">
<EntryHash type="b">36fdf9d905e50cb49010f255fe9a9275d242b40768bcbf7fcdca8e7e4b3731ce</EntryHash>
<!-- The reason of failure -->
<ErrorMessage type="8">Update failed</ErrorMessage>
</ModificationError>
</ModificationResponse>Having received ModificationResponse a client can iterate through ModificationResults and ModificationErrors to find out what entries have been persisted in the Ties.DB.
- Introduction
- Notes on latest release
- Setting up a node
- Creating tablespaces and tables
- Ties.DB protocol
- TiQL - Ties.DB query language
- NodeJS client