lev

The complete REPL & CLI for managing LevelDB instances.

Github星跟蹤圖

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 <key>

Get a key from the database.

PUT <key> <value>

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 <key>

Delete a key from the database.

LS

Get all the keys in the current range.

START <key-pattern>

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

END <key-pattern>

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

LIMIT <number>

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 <key-pattern>

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

--end <key-pattern>

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 <string>

Specify the encoding for the keys.

--valueEncoding <string>

Specify the encoding for the values.

--limit <number>

Limit the number of records emitted in the current range.

--reverse

Reverse the stream.

主要指標

概覽
名稱與所有者heapwolf/lev
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2013-01-01 23:41:36
推送於2018-05-08 19:41:18
最后一次提交2017-07-12 15:10:37
發布數11
最新版本名稱v3.0.0 (發布於 2014-11-22 16:47:13)
第一版名稱v0.1.7 (發布於 )
用户参与
星數295
關注者數11
派生數35
提交數236
已啟用問題?
問題數43
打開的問題數11
拉請求數15
打開的拉請求數2
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?