File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,20 @@ them by looking at the ``errors`` dict on the ``result``:
77
77
}
78
78
79
79
80
+ You can also tell the comparer to ignore parts of the database.
81
+
82
+ For example, to ignore the ``users `` table completely, and the ``line3 `` column
83
+ of the table ``addresses `` you would call ``compare `` like this:
84
+
85
+ .. code-block :: Python
86
+
87
+ >> > result = compare(
88
+ uri_left,
89
+ uri_right,
90
+ ignores = [' users' , ' addresses.col.line3' ]
91
+ )
92
+
93
+
80
94
If you wish to persist that dict to a JSON file, you can quickly do so
81
95
by calling ``result.dump_errors() ``.
82
96
@@ -91,6 +105,8 @@ Currently the library can detect the following differences:
91
105
- Differences in **Foreign Keys ** for a common table
92
106
- Differences in **Indexes ** for a common table
93
107
- Differences in **Columns ** for a common table
108
+ - Ability to ignore a **whole table **
109
+ - Ability to ignore **primary/foreign keys **, **indexes ** and **columns **
94
110
95
111
96
112
Installation
You can’t perform that action at this time.
0 commit comments