Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: support rdb #582

Open
phanirithvij opened this issue Feb 11, 2023 · 3 comments
Open

feature request: support rdb #582

phanirithvij opened this issue Feb 11, 2023 · 3 comments

Comments

@phanirithvij
Copy link

Support redis database dump.

@wader
Copy link
Owner

wader commented Feb 11, 2023

Hi, this format i guess https://rdb.fnordig.de/file_format.html? know if there is any official spec for it? didn't managed to find. Had a quick look, seems quite straight forwards to decode. Would you like to help out adding it?

@phanirithvij
Copy link
Author

phanirithvij commented Feb 11, 2023

Sorry, it is beyond my progamming capabilities.
As for an official spec I couldn't find one either but found a python implementation, which has a slightly recent spec (2019, version 9, for redis 5.0)
Here and the version history here. This is the repo https://github.com/sripathikrishnan/redis-rdb-tools
Other implementations, https://github.com/withlin/redis-canal-rs/blob/master/src/parser.rs, https://github.com/badboy/rdb-rs

@wader
Copy link
Owner

wader commented Feb 11, 2023

No worries! thanks, always useful with other implementations to look and minimal test files etc.

Curious what would be the main use case, decode broken dumps? query using jq? other things?

A bit busy with other things (and decoders) so can't really promise anything, but maybe i will give it a try at some point if none one comes long to do it. btw for some formats you might not need to know that much go to write a decoder , the decode API is designed to hide lots of details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants