Skip to content

pnilan/connector-expected-records

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connector Expected Records

This repository contains a tool for managing expected records for an Airbyte source connector.

Usage

To run the project, you must execute it in the root of a source connector. You can use one of the following commands:

  • check: Checks the connection.
  • list: Lists available streams.
  • generate: Generates expected records. You can use --all, --select, or --stream flag with a stream name to generate records for all, multiple, or a single stream respectively.
  • compare: Compares newly read records to old expected records using DeepDiff. This command requires the --stream flag with a stream name and --pk flag with the primary key type.
  • update: Similar to compare, but also enables updating individual records.

Getting Started

  1. Clone this repository to your local machine:
git clone https://github.com/pnilan/connector-expected-records.git
  1. Navigate to the repository directory:
cd connector-expected-records
  1. Ensure you have the necessary dependencies installed. You might need to install them using:
pip install -r requirements.txt
  1. Execute the desired command in the root of your source connector.

Limitations

  • Assumes source connector is setup correctly, currently provides no checks for directories/files.
  • Fails when attempting to use on streams which are not already within the primary configured catalog. So if --select flag is used but one selected stream is not in the catalog, the process will fail when it gets to the point of generating records for that stream.
  • The tool uses the deepdiff library for comparing records as a result cannot be run inside of a connector's virtual env.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages