cmd/geth: add db commands stats, compact, put, get, delete (#22014)
This PR introduces: - db.put to put a value into the database - db.get to read a value from the database - db.delete to delete a value from the database - db.stats to check compaction info from the database - db.compact to trigger a db compaction It also moves inspectdb to db.inspect.
Showing
- cmd/geth/chaincmd.go 3 additions, 126 deletionscmd/geth/chaincmd.go
- cmd/geth/dbcmd.go 341 additions, 0 deletionscmd/geth/dbcmd.go
- cmd/geth/main.go 2 additions, 1 deletioncmd/geth/main.go
- cmd/utils/flags.go 4 additions, 4 deletionscmd/utils/flags.go
- core/rawdb/database.go 8 additions, 4 deletionscore/rawdb/database.go
- ethdb/leveldb/leveldb.go 41 additions, 15 deletionsethdb/leveldb/leveldb.go
- internal/flags/helpers.go 2 additions, 2 deletionsinternal/flags/helpers.go
Loading
Please register or sign in to comment