tablediff.py
changeset 41 6aad5e35efe8
parent 35 e7f79c4a27ce
child 56 94e091c23ebb
equal deleted inserted replaced
40:922d7fb63384 41:6aad5e35efe8
     1 #!/usr/bin/env python3.2
     1 #!/usr/bin/env python3.2
     2 #
     2 #
     3 # Print differencies between data in two tables of same schema.
     3 # Print differencies between data in tables.
     4 #
     4 #
     5 # Requirements:
     5 # Requirements:
     6 #  * First column of both tables must be numerical primary key.
     6 #  * Source table must have defined PRIMARY KEY.
     7 #  * Destination table must contain all columns from source table.
     7 #  * Destination table must contain all columns from source table.
     8 #    Order is not important.
     8 #    Order is not important.
     9 #
     9 #
    10 
    10 
    11 from pgtoolkit import toolbase, pgmanager, pgdatadiff
    11 from pgtoolkit import toolbase, pgmanager, pgdatadiff