我想使用Google Chrome的IndexedDB在客户端保留数据.
想法是稍后通过Node.JS访问chrome之外的IndexedDB.背景是在本地跟踪使用行为并将收集的数据存储在客户端上以供以后分析而无需服务器后端的想法.
根据我的理解,indexedDB是作为LevelDB实现的.但是,我不能与任何类似的工具/库的开启性LevelDB 的LevelUp/LevelDown或性LevelDB JSON的.
我总是收到此错误消息:
leveldb-dump-to-json --file test.json --db https_www.reddit.com_0.indexeddb.leveldb
events.js:141
throw er; // Unhandled 'error' event
^ OpenError: Invalid argument: idb_cmp1 does not match existing comparator : leveldb.BytewiseComparator
at /usr/local/lib/node_modules/leveldb- json/node_modules/levelup/lib/levelup.js:114:34 Christians-Air:IndexedDB
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?似乎Chrome实现在某种程度上是特殊/不同的.