{"id":13420236,"url":"https://github.com/heapwolf/ldb","last_synced_at":"2025-07-11T19:34:41.988Z","repository":{"id":16963868,"uuid":"19726335","full_name":"heapwolf/ldb","owner":"heapwolf","description":"A C++ REPL / CLI for LevelDB","archived":false,"fork":false,"pushed_at":"2019-11-25T09:30:30.000Z","size":4030,"stargazers_count":201,"open_issues_count":7,"forks_count":23,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-18T14:49:15.470Z","etag":null,"topics":["cli","database","leveldb","repl"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"elm-community/elm-datepicker","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T04:56:36.000Z","updated_at":"2024-02-28T08:03:30.000Z","dependencies_parsed_at":"2022-07-13T13:51:32.797Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/ldb","commit_stats":null,"previous_names":["hij1nx/ldb","0xxff/ldb"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/heapwolf/ldb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/ldb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fldb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264886722,"owners_count":23678563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","database","leveldb","repl"],"created_at":"2024-07-30T22:01:29.367Z","updated_at":"2025-07-11T19:34:41.919Z","avatar_url":"https://github.com/heapwolf.png","language":"C++","funding_links":[],"categories":["TODO scan for Android support in followings","C++"],"sub_categories":[],"readme":"![img](/man/logo.png)\n\n# SYNOPSIS\nA c++ repl and cli tool for leveldb\n\n# BUILD\n\n## Mac OS X\n\n```cli\n$ brew install snappy cmake\n$ git clone https://github.com/heapwolf/ldb.git\n$ make install -C ldb\n```\n\n## Linux (Debian / others?)\n\n```cli\n$ sudo apt-get install libsnappy-dev cmake\n$ git clone https://github.com/heapwolf/ldb.git\n$ cd ldb\n$ make \u0026\u0026 sudo make install\n```\n\n\n# USAGE\nOpen an existing database with interactive mode (REPL) and create the\ndatabase if it does not exist with optional flag `--create`.\n```bash\nldb ./testdb --create\n```\n\nUse as a commandline interface\n```bash\nldb -h\n```\n\n\n## KEY AUTO-COMPLETE\n`ldb` will get the first n (as defined in `LIMIT`) records and make them\navailable for autocomplete. If the limit is redefined, the cache will be\nrefreshed to reflect the new range.\n\nWhen possible, hitting tab will allow you to cycle though keys that match\nyour partial input. Also, if there is a partial match it will be highlighted\nin the results.\n\n![img](/man/colors.png)\n\n## COMMANDS\nYou can `get`, `put` or `del` a single key at any time. Many of the following\ncommands help you to create `ranges` so that you can casually explore smaller\nsets of data. Type `?` to print more help.\n\nGet a key's value\n```bash\n\u003eget foo\n```\n\nPut a value to a key\n```bash\n\u003eput foo 100\n```\n\nList the keys in the curent range\n```bash\n\u003els\n```\n\nFind string in keys or values using a regex\n```bash\n\u003ein keys \u003cregex\u003e\n\u003ein values \u003cregex\u003e\n```\n\n![img](/man/find.png)\n\nSet the start of the current range\n```bash\n\u003estart \u003cstring\u003e\n```\n\nSet the end of the current range\n```bash\n\u003eend \u003cstring\u003e\n```\n\nSet the limit for the current range\n```bash\n\u003elimit \u003cnumber\u003e\n```\n\nGet the size of the the current range (in bytes)\n```bash\n\u003esize\n```\n\nTry to format the output of values as JSON. Use `\u003cnumber\u003e` is the indent)\nand `0` to turn off JSON formatting.\n\n```bash\n\u003ejson \u003cnumber\u003e\n```\n\n![img](/man/json.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fldb/lists"}