wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
529 stars 75 forks source link

idb_cmp1 does not match existing comparator : leveldb.BytewiseComparator #93

Closed XVilka closed 5 years ago

XVilka commented 5 years ago

When I open IndexedDB from Google Chrome:

import plyvel
db = plyvel.DB('/home/<user>/.config/google-chrome/Default/IndexedDB/https_<site>_0.indexeddb.leveldb')
for key, value in db:
    print("{0} : {1}".format(key, value)) 

it returns the error:

Error: b'Invalid argument: idb_cmp1 does not match existing comparator : leveldb.BytewiseComparator'

Seems FastNoSQL project met the same problem and solved it.

wbolster commented 5 years ago

apparently that db does use a custom comparator. reimplementing it is the only way to make this work via plyvel. see docs for help and caveats.