leveldb-tools | import , export or repair leveldb
kandi X-RAY | leveldb-tools Summary
kandi X-RAY | leveldb-tools Summary
import, export or repair leveldb
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- doExport2 is used to export the export file .
- doImport imports the db file .
- doExport writes the database to disk .
- main .
- doRepair rebuilds the file and rebuild it .
leveldb-tools Key Features
leveldb-tools Examples and Code Snippets
Community Discussions
Trending Discussions on leveldb-tools
QUESTION
Here's the situation: I have a Firestore Database. I download it on a daily basis to a Google Cloud Storage Bucket as a backup. If I want to download it locally, I do it using this command gsutil -m cp -r gs://BUCKET_PATH "DESTINATION_PATH"
and it works fine.
MY PROBLEM: the format of the Bucket I download is LevelDB (I think). On my machine, it looks like this :
For example, this is my /users
collection in Firestore when I download it through Google Storage. In the folder, I have multiple binary files ("output-...") and a file ( here: "all_namespaces_kind_users") for metadata.
MY GOAL: I want to be able to read my database in a json file.
MY TRIES:
- I try to use this convertor : https://github.com/Venryx/firestore-leveldb-tools but it uses Python2 and some old google libraries. Using this convertor, I have to download the SDKs locally (see below).
ANSWER
Answered 2021-Apr-26 at 22:53I have created a converter in Python 3 which could convert firestore export files into JSON files firestore-export-json. The package provides a simple CLI command to covert the file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leveldb-tools
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page