fastogt / fastonosql

FastoNoSQL is a crossplatform Redis, Memcached, SSDB, LevelDB, RocksDB, UnQLite, LMDB, ForestDB, Pika, Dynomite, KeyDB GUI management tool.
https://fastonosql.com
GNU General Public License v3.0
1.18k stars 97 forks source link

Does not work with Chrome IndexedDB files? #24

Closed bman654 closed 6 years ago

bman654 commented 7 years ago

Hi,

I tried to use this to open some leveldb files used by Chrome's indexedb. I get this error when I try to "connect" to the leveldb folder:

13:06:09.747: Fail connect to server: Invalid argument: idb_cmp1 does not match existing comparator : leveldb.BytewiseComparator!

Anyway to fix that?

topilski commented 7 years ago

Hi, thank you for issue i will try to reproduce this issue

topilski commented 7 years ago

Hi @bman654 , you are right now not working with IndexedDB, need to implement comparator something like this: https://cs.chromium.org/chromium/src/content/browser/indexed_db/indexed_db_backing_store.cc?sq=package:chromium&type=cs&l=3902 I will try to scratch sources and implement IndexedDB comparator in FastoNoSQL.

topilski commented 6 years ago

Implemented IndexedDB support, keys can be in binary formats, we hexed it for displaying, but in current moment impossible receive value by key(binary).

topilski commented 6 years ago

Fixed value receive routine. In next release (1.7.0) you can try how it work.

AntonKukoba1 commented 6 years ago

Trying to open chrome's leveldb via fastonosql v1.16.3.0 windows 10 x64 14:45:00.732: Fail connect to server: Invalid argument: idb_cmp1 does not match existing comparator : leveldb.BytewiseComparator!

topilski commented 6 years ago

Hi, please change comparator in settings.

topilski commented 6 years ago

Hi @AntonKukoba1 , did you try to change comparator in settings, which result you have?

AntonKukoba1 commented 6 years ago

Yep changing the comparator in the Connection settings helps to open the database, though this doesn't help with the data representation, keys and values are all binary. For values there's at least a way to show it as various formats, but the keys are always hex...

topilski commented 6 years ago

May be keys/values should be binaries? Which commands you using for write this items?

topilski commented 6 years ago

Also try to play with compression.

CaledoniaProject commented 3 years ago

It won't work, you will have to implement native V8 deserializer and key decoder.