# dbt-orch-utils
Orchard dbt-util package to store common DBT logic

## Usage 

In template file `soundcloud_raw_joins.jinja`:
```jinja2
{% import 'store/soundcloud/soundcloud_raw_joins.sql' as dbt_orch_utils %}
{{
    dbt_orch_utils.soundcloud_raw_joins(
        streamlevelreport='streamlevelreport',
        customerdata='customerdata',
        trackinformation='trackinformation'
    )
}}
```

In python code:
```python
    from dbt_orch_utils.templates import jinja_environment

    env = jinja_environment()
    template = env.get_template('soundcloud_raw_joins.jinja')
    result = template.render()
```

Now result contains rendered content for the template.