Skip to content

Commit

Permalink
Feature: Add Quickstart Model Counts to README (#31)
Browse files Browse the repository at this point in the history
* MagicBot/add-model-counts updates

* Update README.md

* Update README.md
  • Loading branch information
fivetran-catfritz authored Jan 15, 2025
1 parent 477682e commit 8ababc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# dbt_apple_store version.version

## Documentation
- Added Quickstart model counts to README. ([#31](https://github.com/fivetran/dbt_apple_store/pull/31))
- Corrected references to connectors and connections in the README. ([#31](https://github.com/fivetran/dbt_apple_store/pull/31))

# dbt_apple_store v0.4.0
[PR #22](https://github.com/fivetran/dbt_apple_store/pull/22) includes the following updates:

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ The following table provides a detailed list of all tables materialized within t
| [apple_store__subscription_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__subscription_report) | Each record represents daily subscription metrics by account, app, subscription name, country and state. |
| [apple_store__territory_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__source_type_report) | Each record represents daily subscription metrics by app_id, source_type and territory. |

### Materialized Models
Each Quickstart transformation job run materializes 38 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
<!--section-end-->

## How do I use the dbt package?

### Step 1: Prerequisites
To use this dbt package, you must have the following:

- At least one Fivetran Apple App Store connector syncing data into your destination.
- At least one Fivetran Apple App Store connection syncing data into your destination.
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.

### Step 2: Install the package
Expand All @@ -68,7 +70,7 @@ vars:
```

### Step 4: Disable models for non-existent sources
Your Apple App Store connector might not sync every table that this package expects. If you use subscriptions and have the `sales_subscription_event_summary` and `sales_subscription_summary` tables synced, add the following variable to your `dbt_project.yml` file:
Your Apple App Store connection might not sync every table that this package expects. If you use subscriptions and have the `sales_subscription_event_summary` and `sales_subscription_summary` tables synced, add the following variable to your `dbt_project.yml` file:

```yml
vars:
Expand All @@ -84,8 +86,8 @@ You will need to `dbt seed` the `apple_store_country_codes` [file](https://githu
### (Optional) Step 6: Additional configurations
<details open><summary>Expand/collapse configurations</summary>

#### Union multiple connectors
If you have multiple apple_store connectors in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `apple_store_union_schemas` OR `apple_store_union_databases` variables (cannot do both) in your root `dbt_project.yml` file:
#### Union multiple connections
If you have multiple apple_store connections in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `apple_store_union_schemas` OR `apple_store_union_databases` variables (cannot do both) in your root `dbt_project.yml` file:

```yml
vars:
Expand Down

0 comments on commit 8ababc4

Please sign in to comment.