Coder Social home page Coder Social logo

ldb's Introduction

img

SYNOPSIS

A c++ repl for leveldb

INSTALL

$ clib install hij1nx/ldb

BUILD

$ brew install snappy # on linux `apt-get install libsnappy1` (i think)
$ git clone https://github.com/hij1nx/ldb.git
$ make install -C ldb

USAGE

Open an existing database with interactive mode (REPL) and create the database if it does not exist with optional flag -c.

ldb -i ./testdb -c

Use as a commandline interface

ldb -h

KEY AUTO-COMPLETE

ldb will get the first n (as defined in LIMIT) records and make them available for autocomplete. If the limit is redefined, the cache will be refreshed to reflect the new range.

When possible, hitting tab will allow you to cycle though keys that match your partial input. Also, if there is a partial match it will be highlighted in the results.

img

COMMANDS

You can get, put or del a single key at any time. Many of the following commands help you to create ranges so that you can casually explore smaller sets of data.

Get a key's value

>get <keyname>

Put a value to a key

>put <keyname>;<value>

List the keys in the curent range

>ls

Find string in keys or values using a regex

>in keys <regex>
>in values <regex>

Set the start of the current range

>start <string>

Set the end of the current range

>end <string>

Set the limit for the current range

>limit <number>

Get the size of the the current range (in bytes)

>size

ldb's People

Contributors

heapwolf avatar ralphtheninja avatar jwerle avatar deepak1556 avatar

Stargazers

Michael Anthony avatar

Watchers

Michael Anthony avatar  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.