legacydump

command module
v0.0.0-...-1ea01e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

LegacyDump

legacydump is a command line tool to generate a iavl tree based on the legacy format of the node key. This tool is used for testing the lazy loading and set feature of the iavl tree.

Usage

It takes 5 arguments:

- dbtype: the type of database to use. 
- dbdir: the directory to store the database.
- `random` or `sequential`: The `sequential` option will generate the tree from `1` to `version` in order and delete versions from `1` to `removal version`. The `random` option will delete `removal version` versions randomly.
- version: the upto number of versions to generate.
- removal version: the number of versions to remove.
go run . <dbtype> <dbdir> <random|sequential> <version> <removal version>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL