mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 15:36:44 +00:00
* files * docs * package * remove * comments * macro comments * overview * comment out on run start * remove workflows
25 lines
801 B
SQL
25 lines
801 B
SQL
{# {% macro create_udfs() %}
|
|
{% if var("UPDATE_UDFS_AND_SPS") %}
|
|
{% set sql %}
|
|
CREATE schema if NOT EXISTS silver;
|
|
{{ create_udtf_get_base_table(
|
|
schema = "streamline"
|
|
) }}
|
|
|
|
{% endset %}
|
|
{% do run_query(sql) %}
|
|
{% if target.database != "BLAST_COMMUNITY_DEV" %}
|
|
{% set sql %}
|
|
{{ create_udf_get_chainhead() }}
|
|
{{ create_udf_bulk_json_rpc() }}
|
|
{{ create_udf_bulk_get_traces() }}
|
|
{{ create_udf_decode_array_string() }}
|
|
{{ create_udf_decode_array_object() }}
|
|
{{ create_udf_bulk_decode_logs() }}
|
|
|
|
{% endset %}
|
|
{% do run_query(sql) %}
|
|
{% endif %}
|
|
{{- fsc_utils.create_udfs() -}}
|
|
{% endif %}
|
|
{% endmacro %} #} |