Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tx_metadata table #229

Merged
merged 2 commits into from
Aug 2, 2020
Merged

Add a tx_metadata table #229

merged 2 commits into from
Aug 2, 2020

Conversation

erikd
Copy link
Contributor

@erikd erikd commented Jul 31, 2020

No description provided.

@erikd
Copy link
Contributor Author

erikd commented Jul 31, 2020

@vargasmontero This should be provide the Tx metadata you are requesting. In the Haskell side it is just a Text containing the meta data encoded as JSON, but as far as PostgreSQL is concerned it should be JSON.

There currently is no tx metadata on the mainnet chain so I don't really have a way of testing this.

@erikd
Copy link
Contributor Author

erikd commented Jul 31, 2020

@vargasmontero Thinking some more it may be better to merge this now and fix it if it is incorrect.

@erikd erikd force-pushed the erikd/tx-metadata branch 2 times, most recently from bb63ab9 to 4df86ff Compare July 31, 2020 07:46
On the Haskell side the JSON metadata is stored as a 'Text' while
on the PostgreSQL side it is stored as 'jsonb' (a decomposed binary
format internal to PostgreSQL that makes it more efficient to query).
@erikd erikd changed the title Add a tx_meta_data table Add a tx_metadata table Aug 2, 2020
@erikd
Copy link
Contributor Author

erikd commented Aug 2, 2020

Merging this.

@erikd erikd merged commit 0f247ee into master Aug 2, 2020
@iohk-bors iohk-bors bot deleted the erikd/tx-metadata branch August 2, 2020 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant