in reply to Testing database updates.
Most DBs have a dump utility that will produce a plain text file as output. These can then be diff'd in the usual ways.
Start with a known state -- eg. empty -- and use the existing script to perform a range of inserts updates and deletes. Dump the result and call it the reference.
Start with the same known state, use the refactored script to perform the same operations and dump the result. Diff the two dumps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing database updates.
by tobyink (Canon) on Apr 18, 2012 at 12:36 UTC | |
by BrowserUk (Patriarch) on Apr 18, 2012 at 22:59 UTC | |
by erix (Prior) on Apr 19, 2012 at 08:08 UTC | |
by BrowserUk (Patriarch) on Apr 19, 2012 at 08:37 UTC | |
|
Re^2: Testing database updates.
by chrestomanci (Priest) on Apr 19, 2012 at 16:51 UTC | |
by BrowserUk (Patriarch) on Apr 19, 2012 at 22:26 UTC | |
by chrestomanci (Priest) on Apr 20, 2012 at 08:09 UTC |