Lev Save

The complete REPL & CLI for managing LevelDB instances.

Project README

STATUS

development sponsored by voltra.co

SYNOPSIS

A simple and convenient commandline tool and REPL for leveldb.

FEATURES

  • REPL with colorized tab-completion and zsh/fish style key suggestions
  • REPL automatically saves and reloads REPL history

SCREENSHOT

screenshot

INSTALLATION

$ npm install -g lev

BASIC USAGE

$ lev path/to/db

REPL COMMANDS

Use upper or lower case for the following commands.

GET

Get a key from the database.

PUT

Put a value into the database. If you have keyEncoding or valueEncoding set to json, these values will be parsed from strings into json.

DEL

Delete a key from the database.

LS

Get all the keys in the current range.

START

Defines the start of the current range. You can also use GT or GTE.

END

Defines the end of the current range. You can also use LT or LTE.

LIMIT

Limit the number of records in the current range (defaults to 5000).

REVERSE

Reverse the records in the current range.

CLI COMMANDS

These all match the parameters used with levelup. The default encoding for the database is set to json.

--start

Specify the start of the current range. You can also use gt or gte.

--end

Specify the end of the current range. You can also use lt and lte.

--values

Only list the all of the values in the current range. Emit as a new-line delimited stream of json.

--keys

Only list all of the keys in the current range. Will tabularize the output.

--keyEncoding

Specify the encoding for the keys.

--valueEncoding

Specify the encoding for the values.

--limit

Limit the number of records emitted in the current range.

--reverse

Reverse the stream.

Open Source Agenda is not affiliated with "Lev" Project. README Source: heapwolf/lev
Stars
296
Open Issues
13
Last Commit
5 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating