rocksv
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

rocksv

RocksDB simple viewer tool

oclif Version Downloads/week License

Usage

$ npm install -g rocksv
$ rocksv COMMAND
running command...
$ rocksv (-v|--version|version)
rocksv/0.1.1 darwin-x64 node-v12.16.1
$ rocksv --help [COMMAND]
USAGE
  $ rocksv COMMAND
...

Commands

rocksv get DATAPATH KEY

Get single value by key

USAGE
  $ rocksv get DATAPATH KEY

ARGUMENTS
  DATAPATH  Path to the RocksDB folder

  KEY       Key to get from the database. Custom replacer h{}, b{}, i{}, d{} from hex, base64, number, bigint to binary
            representation can be used. (For integer, it is big endian)

OPTIONS
  -f, --format=hex|base64|string  [default: hex] Format of value to display.
  -h, --help                      show CLI help

EXAMPLE
  rsc get dataPath searchingKey

See code: src/commands/get.ts

rocksv get-all DATAPATH

Get rage of data

USAGE
  $ rocksv get-all DATAPATH

ARGUMENTS
  DATAPATH  Path to the RocksDB folder

OPTIONS
  -d, --delimiter=delimiter                   [default: :] Delimiter of the key

  -e, --end=end                               Key for the search to end with. Custom replacer h{}, b{}, i{}, d{} from
                                              hex, base64, number, bigint to binary representation can be used. (For
                                              integer, it is big endian)

  -f, --format=hex|base64|string              [default: hex] Format of value to display.

  -h, --help                                  show CLI help

  -l, --limit=limit                           Limit of the values to search

  -p, --prefix=prefix                         Prefix of keys to search

  -r, --reverse                               Show values in reverse order

  -s, --start=start                           Key for the search to start from. Custom replacer h{}, b{}, i{}, d{} from
                                              hex, base64, number, bigint to binary representation can be used. (For
                                              integer, it is big endian)

  --key-format=string|smart-hex|smart-base64  [default: smart-hex] Format of key to display. smart-hex and smart-base64
                                              will try to encode to hex or base64 with range of delimiter

EXAMPLE
  rsc get-all dataPath -l 100

See code: src/commands/get-all.ts

rocksv help [COMMAND]

display help for rocksv

USAGE
  $ rocksv help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

Readme

Keywords

Package Sidebar

Install

npm i rocksv

Weekly Downloads

8

Version

0.1.1

License

MIT

Unpacked Size

17.9 kB

Total Files

15

Last publish

Collaborators

  • shuse2