Code Monkey home page Code Monkey logo

lev's Introduction

STATUS

BETA

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

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.

lev's People

Contributors

heapwolf avatar no9 avatar juliangruber avatar brycebaril avatar feross avatar fritzy avatar robertkowalski avatar remoe avatar

Watchers

David Weinstein avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.