diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 0756f29..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/README.md b/README.md index 92b233c..c4885b8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Marketo (Source) +# Marketo Source ([docs](https://fivetran-dbt-marketo.netlify.app/#!/overview)) -This package models Marketo data from [Fivetran's connector](https://fivetran.com/docs/applications/marketo). It uses data in the format described by [this ERD](https://docs.google.com/presentation/d/1TauFmnr89QV1KV_Un7kJ-KJWOQt1fbp59a1xJLUdDDY/edit). +This package models Marketo data from [Fivetran's connector](https://fivetran.com/docs/applications/marketo). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/marketo#schema). This package enriches your Fivetran data by doing the following: @@ -36,6 +36,18 @@ vars: marketo_schema: your_schema_name ``` +### Changing the Build Schema +By default this package will build the Marketo staging models within a schema titled ( + `_stg_marketo`) in your target database. If this is not where you would like your Marketo data to be written to, add the following configuration to your `dbt_project.yml` file: + +```yml +# dbt_project.yml + +... +models: + marketo_source: + +schema: my_new_schema_name # leave blank for just the target_schema +``` + ## Contributions Additional contributions to this package are very welcome! Please create issues @@ -43,9 +55,15 @@ or open PRs against `master`. Check out [this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package. +## Database Support +This package has been tested on BigQuery, Snowflake and Redshift. + ## Resources: +- Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next +- Have questions, feedback, or need help? Book a time during our office hours [using Calendly](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at solutions@fivetran.com - Find all of Fivetran's pre-built dbt packages in our [dbt hub](https://hub.getdbt.com/fivetran/) -- Learn more about Fivetran [in the Fivetran docs](https://fivetran.com/docs) +- Learn how to orchestrate [dbt transformations with Fivetran](https://fivetran.com/docs/transformations/dbt) +- Learn more about Fivetran overall [in our docs](https://fivetran.com/docs) - Check out [Fivetran's blog](https://fivetran.com/blog) - Learn more about dbt [in the dbt docs](https://docs.getdbt.com/docs/introduction) - Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers diff --git a/dbt_project.yml b/dbt_project.yml index d319ed4..3a9fae6 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ name: 'marketo_source' -version: '0.2.0' +version: '0.3.0' config-version: 2 require-dbt-version: [">=0.18.0", "<0.20.0"] @@ -20,4 +20,11 @@ vars: activity_unsubscribe_email: "{{ source('marketo','activity_unsubscribe_email') }}" activity_send_email: "{{ source('marketo','activity_send_email') }}" activity_delete_lead: "{{ source('marketo','activity_delete_lead') }}" - activity_merge_leads: "{{ source('marketo','activity_merge_leads') }}" \ No newline at end of file + activity_merge_leads: "{{ source('marketo','activity_merge_leads') }}" + +models: + marketo_source: + +materialized: table + +schema: stg_marketo + tmp: + +materialized: view \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 1d6fdda..b9faa91 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'marketo_source_integration_tests' -version: '1.0.0' +version: '0.3.0' profile: 'integration_tests' config-version: 2