Connector Success Criteria #873
Replies: 2 comments 1 reply
-
I have documented what we expect in connector and what is expected in every trait function implementation. TraitEvery connector to external database needs to implement connector trait (/dozer-ingestion/src/connectors/mod.rs)
Replication changes tracking types
Tables and columns selectionSelection of which tables and columns will be used in ingestion is defined in name: users
connection: !Ref pg_data_connection
table_name: userdata
columns:
- gender
- email From this configuration, SchemasEvery external schema should be mapped using dozer types. The latest types definitions can be found at https://getdozer.io/docs/reference/data_types . If type is not supported, connector should return error, during schema validation step. Replay supportDuring pipeline start, Unit testsUnit tests are only possible in places where connection to external database is not required. It is important to have unit tests for schema mapping and data casting to dozer types. More complex tests should be implemented using E2E tests. E2E testsMore complex tests require to have connection real database. Such tests cases expect to have several things:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Let's start with following table and confirm on the connector success criteria - following could be trait level checklist.
Beta Was this translation helpful? Give feedback.
All reactions