feat(cli): Allow walking a range of an MDBX table using db mdbx get (#20233)

This commit is contained in:
Brian Picciano
2025-12-09 21:37:06 +01:00
committed by GitHub
parent 0f0eb7a531
commit abfb6d3965
8 changed files with 226 additions and 46 deletions

View File

@@ -6,7 +6,7 @@ Gets the content of a database table for the given key
$ op-reth db get mdbx --help
```
```txt
Usage: op-reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY]
Usage: op-reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY] [END_KEY] [END_SUBKEY]
Arguments:
<TABLE>
@@ -18,6 +18,12 @@ Arguments:
[SUBKEY]
The subkey to get content for
[END_KEY]
Optional end key for range query (exclusive upper bound)
[END_SUBKEY]
Optional end subkey for range query (exclusive upper bound)
Options:
--raw
Output bytes instead of human-readable decoded value

View File

@@ -6,7 +6,7 @@ Gets the content of a database table for the given key
$ reth db get mdbx --help
```
```txt
Usage: reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY]
Usage: reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY] [END_KEY] [END_SUBKEY]
Arguments:
<TABLE>
@@ -18,6 +18,12 @@ Arguments:
[SUBKEY]
The subkey to get content for
[END_KEY]
Optional end key for range query (exclusive upper bound)
[END_SUBKEY]
Optional end subkey for range query (exclusive upper bound)
Options:
--raw
Output bytes instead of human-readable decoded value