You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2024. It is now read-only.
@@ -182,12 +183,12 @@ _<sup>*</sup> Some drivers have dependencies that cannot be installed using `pip
182
183
183
184
### Install Psycopg2
184
185
185
-
In order to run Postgresql, you'll need `psycopg2`. This Python package requires some additional dependencies described in their [documentation](https://www.psycopg.org/docs/install.html#build-prerequisites).
186
+
In order to run Postgresql, you'll need `psycopg2`. This Python package requires some additional dependencies described in their [documentation](https://www.psycopg.org/docs/install.html#build-prerequisites).
186
187
An easy solution is to install [psycopg2-binary](https://www.psycopg.org/docs/install.html#quick-install) by running:
187
188
188
189
```pip install psycopg2-binary```
189
190
190
-
Which comes with a pre-compiled binary and does not require additonal prerequisites. However, note that for production use it is adviced to use `psycopg2`.
191
+
Which comes with a pre-compiled binary and does not require additonal prerequisites. However, note that for production use it is adviced to use `psycopg2`.
191
192
192
193
193
194
# How to use
@@ -225,6 +226,8 @@ Options:
225
226
-`-j` or `--threads` - Number of worker threads to use per database. Default=1.
226
227
-`-w`, `--where` - An additional 'where' expression to restrict the search space.
227
228
-`--conf`, `--run` - Specify the run and configuration from a TOML file. (see below)
229
+
-`--no-tracking` - data-diff sends home anonymous usage data. Use this to disable it.
230
+
228
231
229
232
### How to use with a configuration file
230
233
@@ -469,6 +472,45 @@ If you pass `--stats` you'll see e.g. what % of rows were different.
469
472
gaps), and improvements to bypass Python/driver performance limitations when
470
473
comparing huge amounts of rows locally (i.e. for very high `bisection_threshold` values).
471
474
475
+
# Anonymous Tracking
476
+
477
+
data-diff collects anonymous usage data, in order to improve the tool, and our understanding of our user base.
478
+
479
+
The data is sent home once when the tool starts, and once when it ends its run.
480
+
We do not collect any sensitive information.
481
+
482
+
The collected data is limited to:
483
+
484
+
- Operating System and Python version
485
+
486
+
- Names of databases used (postgresql, mysql, etc.)
487
+
488
+
- Sizes of tables used, elapsed run time, and diff count. (numbers only)
489
+
490
+
- Error message, if any, truncated to the first 20 characters.
491
+
492
+
- A persistent UUID to indentify the session, stored in `~/.datadiff.toml`
493
+
494
+
If you do not wish to participate, it can be easily disabled.
495
+
496
+
## Disable
497
+
498
+
There are several ways to disable the tracking.
499
+
500
+
In the CLI, use the `--no-tracking` flag.
501
+
502
+
In the config file, set `no_tracking = true` (for example, under `[run.default]`)
503
+
504
+
If you're using the Python API, do the following:
505
+
506
+
```python
507
+
import data_diff
508
+
data_diff.disable_tracking() # Call this first, before making any API calls
509
+
510
+
# Connect and diff your tables without any tracking
511
+
```
512
+
513
+
472
514
# Development Setup
473
515
474
516
The development setup centers around using `docker-compose` to boot up various
0 commit comments