PageRenderTime 21ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/tst/org/diffkit/diff/testcase/test26.README.txt

http://diffkit.googlecode.com/
Plain Text | 26 lines | 22 code | 4 blank | 0 comment | 0 complexity | fb8952265f82405a831305c70ff43fe0 MD5 | raw file
  1. test26 README
  2. =========
  3. Description
  4. ----------
  5. Demonstrates SqlPatchSink, and how it is used to generate SQL statements
  6. (INSERT, DELETE, UPDATE) in order to synchronize two tables. Also demonstrates
  7. how DiffKit handles creating DML statements for Strings that contain embedded
  8. single quotes (')
  9. Assumptions
  10. -----------
  11. - lhs & rhs are DB tables
  12. - plan file supplies lhs table name and rhs table name
  13. - lhs and rhs tables have identical structure
  14. - MagicPlan specifies the patchFileName, which configures a SqlPatchSink.
  15. - MagicPlan reverse engineers TableModels from the database
  16. - there is
  17. Expectations
  18. -----------
  19. - 2 missing row diffs result in 2 INSERT statements.
  20. - 2 extra row diffs result in 2 DELETE statements.
  21. - column diff on row 3 result in UPDATE statement with 1 value.
  22. - 3 column diffs on row 4 result in UPDATE statement with 3 values.