12

LevelDB is an open-source on-disk key-value store written by Google and used in Google Chrome. It's faster than SQLite, but its files can get corrupted more easily.

A sample file can be found at ~/.config/chromium/Default/Local Extension Settings/pafkbggdmjlpgkdkcbjmhmfcdpncadgh/000459.ldb or similar.

How to have a look at the content of such files, without having to write a program?
A browser would be great, but just dumping all data is already enough.

There is no official client, just official client libraries.

  • Try doing a Web search for [ LevelDB GUI ]. You'll see that there are multiple options out there. – unforgettableid Mar 27 '17 at 0:03
  • @unforgettableid: Indeed a few have appeared since 2014 it seems. Could you please write an answer about your favorite one? I will most certainly accept your answer. Thanks a lot for the investigation! – Nicolas Raoul Mar 27 '17 at 2:33
  • I've only ever so far struggled with FastoNoSQL, and haven't gotten it fully working yet, so don't yet know which is best :) – unforgettableid Mar 27 '17 at 3:16
  • 1
    @unforgettableid: FastoNoSQL is intended to be compatible with many database formats, which unfortunately makes the interface very counter-intuitive. I am sure any LevelDB-specific tool is better. – Nicolas Raoul Mar 27 '17 at 4:21
  • @unforgettableid if you think that something not working in FastoNoSQL please create but here: github.com/fastogt/fastonosql/issues . – Topilski Alexandr Aug 2 '18 at 11:40
6

You can use python or iPython with the LevelDb library to do the sort of thing you are looking for including quickly generating dumps, queries, etc.

Example:

>>> import leveldb
>>> db = leveldb.LevelDB('./db')
>>> print db.Get('hello')
world

>>> print list(db.RangeIter(key_from = '2', key_to = '5'))
[('2', 'string_2'), ('3', 'string_3'), ('4', 'string_4'), ('5', 'string_5')]

More documentation can be found on the web site.

6

FastoNoSQL is an open source (GitHub) and free GUI client that supports LevelDB databases.

LevelDB screenshot

  • I tried the 64-bit version. It appears to crash silently on entry-level (Pentium and Celeron) 64-bit CPUs. I filed bug reports here and here. Until the problem is fixed, Pentium and Celeron users may have to use the 32-bit version instead. The 32-bit version uses simpler instructions and therefore works fine even on low-end 64-bit CPUs. – unforgettableid Mar 27 '17 at 5:20
  • Trying to open a local .ldb file in FastoNoSQL is a bit confusing. I have to create a new database connection. I'm giving up for now; maybe I'll try again some more tomorrow. – unforgettableid Mar 27 '17 at 5:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.