Skip to content

Commit

Permalink
Replace wording
Browse files Browse the repository at this point in the history
  • Loading branch information
VioletM committed Aug 23, 2024
1 parent 9524cc3 commit 9642723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
keywords: [parent child relationship, parent key]
---
This example demonstrates handling data with parent-child relationships using the `dlt` library. This process
is about integrating specific fields (e.g., primary, foreign keys) from a parent record into each child record,
ensuring that we can use self-defined parent keys in the child table.
This example demonstrates handling data with parent-child relationships using the `dlt` library.
You learn how to integrate specific fields (e.g., primary, foreign keys) from a parent record into each child record.
In this example, we'll explore how to:
- Integrate a custom `parent_id` into each child record.
- Ensure every child is correctly linked to its `parent_id` using a tailored function, `add_parent_id`.
- Add `parent_id` into each child record using `add_parent_id` function
- Use the [`add_map` function](https://dlthub.com/docs/api_reference/extract/resource#add_map) to apply this
custom logic to every record in our dataset.
custom logic to every record in the dataset
:::note important
Please note that dlt metadata, including `_dlt_id` and `_dlt_load_id`, will still be loaded into the tables.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
keywords: [parent child relationship, parent key]
---
This example demonstrates handling data with parent-child relationships using
the `dlt` library. You learn how to integrate specific fields (e.g., primary,
This example demonstrates handling data with parent-child relationships using
the `dlt` library. You learn how to integrate specific fields (e.g., primary,
foreign keys) from a parent record into each child record.
In this example, we'll explore how to:
- Add `parent_id` into each child record using `add_parent_id` function.
- Ensure every child is correctly linked to its `parent_id` using a tailored function, `add_parent_id`.
- Add `parent_id` into each child record using `add_parent_id` function
- Use the [`add_map` function](https://dlthub.com/docs/api_reference/extract/resource#add_map) to apply this
custom logic to every record in our dataset.
custom logic to every record in the dataset
:::note important
Please note that dlt metadata, including `_dlt_id` and `_dlt_load_id`, will still be loaded into the tables.
Expand Down

0 comments on commit 9642723

Please sign in to comment.