fq icon indicating copy to clipboard operation
fq copied to clipboard

feature request: support rdb

Open phanirithvij opened this issue 2 years ago • 3 comments

Support redis database dump.

phanirithvij avatar Feb 11 '23 05:02 phanirithvij

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?

wader avatar Feb 11 '23 11:02 wader

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

phanirithvij avatar Feb 11 '23 16:02 phanirithvij

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.

wader avatar Feb 11 '23 16:02 wader