mirror of
https://github.com/FlipsideCrypto/optimism-models.git
synced 2026-02-06 11:01:44 +00:00
* initial build * Decoder changes * dbt project * global node url * testing * comments * removed macro * prod integration
36 lines
593 B
SQL
36 lines
593 B
SQL
{% macro log_model_details(vars=false, params=false) %}
|
|
|
|
{%- if execute -%}
|
|
/*
|
|
DBT Model Config:
|
|
{{ model.config | tojson(indent=2) }}
|
|
*/
|
|
|
|
{% if vars is not false %}
|
|
|
|
{% if var('LOG_MODEL_DETAILS', false) %}
|
|
{{ log( vars | tojson(indent=2), info=True) }}
|
|
{% endif %}
|
|
/*
|
|
Variables:
|
|
{{ vars | tojson(indent=2) }}
|
|
*/
|
|
{% endif %}
|
|
|
|
{% if params is not false %}
|
|
|
|
{% if var('LOG_MODEL_DETAILS', false) %}
|
|
{{ log( params | tojson(indent=2), info=True) }}
|
|
{% endif %}
|
|
/*
|
|
Parameters:
|
|
{{ params | tojson(indent=2) }}
|
|
*/
|
|
{% endif %}
|
|
|
|
/*
|
|
Raw Code:
|
|
{{ model.raw_code }}
|
|
*/
|
|
{%- endif -%}
|
|
{% endmacro %} |