Skip to content

Commit

Permalink
Use adapter dispatch macro
Browse files Browse the repository at this point in the history
  • Loading branch information
clrcrl committed Sep 3, 2020
1 parent 9e793c1 commit 783ffad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions macros/_get_audit_helper_namespaces.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% macro _get_audit_helper_namespaces() %}
{% set override_namespaces = var('audit_helper_dispatch_list', []) %}
{% do return(override_namespaces + ['audit_helper']) %}
{% endmacro %}
2 changes: 1 addition & 1 deletion macros/compare_relation_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ order by a_ordinal_position, b_ordinal_position

{% macro get_columns_in_relation_sql(relation) %}

{{ adapter_macro('audit_helper.get_columns_in_relation_sql', relation) }}
{{ adapter.dispatch('get_columns_in_relation_sql', packages=audit_helper._get_audit_helper_namespaces())(relation) }}

{% endmacro %}

Expand Down

0 comments on commit 783ffad

Please sign in to comment.