I found that mostly easy when you have the complete changelog available, and hard otherwise.

If your database structure writes a log or a change history for its rows, you can retrieve that history and replay it to the client. If you want to look at a real database, consider parsing the write ahead logs or replication logs, as these usually replay all the actions on rows.

There are specialized databases that basically store these logs together with the row data. I believe "Event Sourcing" is the buzzword for that. They seem to be separate from actual SQL databases though.

If you need to create the diff from thin air, it's usually not hard to generate the diff if you can find something close enough to the client state (daily backup) and the current state.

In short, I'm unaware of a premade solution to this.


In reply to Re: Retrieve changes in remote dataset by Corion
in thread Retrieve changes in remote dataset by hippo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.