-
Notifications
You must be signed in to change notification settings - Fork 164
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 database CLI tools #1902
Add database CLI tools #1902
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1902 +/- ##
==========================================
+ Coverage 75.45% 75.59% +0.14%
==========================================
Files 100 101 +1
Lines 8983 9064 +81
==========================================
+ Hits 6778 6852 +74
+ Misses 1602 1593 -9
- Partials 603 619 +16 ☔ View full report in Codecov by Sentry. |
053dae8
to
90f00f4
Compare
Can we also show to which network db corresponds to? it would be great if there is some snapshot stored without identification |
I think that's a good addition. From my understanding, the network ID isn't stored directly in the db. Let me figure out how to pull that information. |
57a1fe3
to
c4f9a82
Compare
That's right you can modify existing approach for your case:
You should iterate over networks to figure out ( |
cda476d
to
02689e0
Compare
Added the network field. |
a8bde44
to
9c1e7af
Compare
TODO for myself: do not find the target directory using working directory, binary will not be able to run anywhere. Perhaps use embed directive. |
920b0c0
to
2c7c7c2
Compare
Calculating DB size has some differences between this implementation and #1773:
|
Tests fail because #1978 has to be merged. |
2c7c7c2
to
a131fe4
Compare
4ce6e77
to
5b4fea8
Compare
b4dcaa5
to
daa5f33
Compare
daa5f33
to
c15d540
Compare
Description
This PR adds a new CLI tool for database-related operations (i.e.
juno db [commands]
). Under thedb
category, there are 2 subcommand:juno db info
- display the blockchain information stored in the databasejuno db size
- display storage information for each bucket in the db