• Kirill Smelkov's avatar
    zodbdump: Start to stabilize output format · 75c03368
    Kirill Smelkov authored
    Since zodbdump start (c0a6299f "zodbdump - Tool to dump content of a
    ZODB database   (draft)") and up till now zodbdump output format was not
    good. For example user and description transaction properties were
    output without proper quoting, which in situation when there would be
    fancy characters in there would break the output.
    
    So start the format stabilization:
    
    - user and description are output as quoted, so now they are guaranteed
      to be on one line. The quoting character is always " (instead of e.g.
      smartly quoting either by ' or " as python does) for easier
      compatibility with ZODB implementations in other languages.
    
    - transaction extension is now printed as raw bytes, not as dict.
      The idea here is that `zodb dump`
    
      * should perform dump of raw data as stored inside ZODB so that later
        `zodb restore` could restore the database identically to the same state.
    
      * we should dump raw data instead of unpickled ones because generally
        on-disk exten...
    75c03368