feat(cli): db cmd scaffold (#405)

* feat(cli): db cmd scaffold

* feat(cli): add methods for seeding/listing tables

* feat(cli): add reth db stats

* chore: docs / cleanup

* chore: remove ethers

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
This commit is contained in:
Georgios Konstantopoulos
2022-12-13 18:57:37 +02:00
committed by GitHub
parent 5057e8ec0a
commit dff3936b29
8 changed files with 186 additions and 3 deletions

View File

@@ -70,6 +70,11 @@ where
Ok(Self { db, tx: Some(db.tx_mut()?) })
}
/// Accessor to the internal Database
pub fn inner(&self) -> &'this DB {
self.db
}
/// Commit the current inner transaction and open a new one.
///
/// # Panics

View File

@@ -15,6 +15,7 @@
//! - `stage.progress{stage}`: The block number each stage has currently reached.
mod db;
pub use db::StageDB;
mod error;
mod id;
mod pipeline;

View File

@@ -8,6 +8,7 @@
//! <reth crate template>
mod block;
pub mod db_provider;
mod state;