chore: rename StageDB to Transaction (#470)

* chore: rename StageDB to Transaction

* chore: cargo fmt

* chore: add note about potentially removing this in the future
This commit is contained in:
Georgios Konstantopoulos
2022-12-15 18:14:14 +02:00
committed by GitHub
parent c10bdb5830
commit 9cd5824f35
13 changed files with 69 additions and 66 deletions

View File

@ -3,7 +3,7 @@
## Abstractions
* We created a [Database trait abstraction](https://github.com/paradigmxyz/reth/blob/0d9b9a392d4196793736522f3fc2ac804991b45d/crates/interfaces/src/db/mod.rs) using Rust Stable GATs which frees us from being bound to a single database implementation. We currently use MDBX, but are exploring [redb](https://github.com/cberner/redb) as an alternative.
* We then iterated on [`StageDB`](https://github.com/paradigmxyz/reth/blob/0d9b9a392d4196793736522f3fc2ac804991b45d/crates/stages/src/db.rs#L14-L19) as a non-leaky abstraction with helpers for strictly-typed and unit-tested higher-level database abstractions.
* We then iterated on [`Transaction`](https://github.com/paradigmxyz/reth/blob/0d9b9a392d4196793736522f3fc2ac804991b45d/crates/stages/src/db.rs#L14-L19) as a non-leaky abstraction with helpers for strictly-typed and unit-tested higher-level database abstractions.
## Codecs