To use the Datafold REST API, you should first create a Datafold API key in Settings > Account.
Install
Then, create your virtual environment for Python:Configure
Navigate in the Datafold UI to Settings > Integrations > CI. After selectingdatafold-sdk from the available options, complete configuration with the following information:
Add commands to your custom orchestration
ci_config_id, pr_num, and diffs_file with the appropriate values for your CI configuration ID, pull request number, and the path to your diffs JSON file.
CLI
Python
Example JSON format for diffs file
TheJSON file should define the production and pull request tables to compare, along with any primary keys and columns to include or exclude in the comparison.
