fq
fq copied to clipboard
feature request: support rdb
Support redis database dump.
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?
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
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.