mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 13:41:55 +00:00
24 lines
751 B
SQL
24 lines
751 B
SQL
{% macro create_udfs() %}
|
|
{% if var("UPDATE_UDFS_AND_SPS") %}
|
|
{% if target.database != "FLOW_COMMUNITY_DEV" %}
|
|
{% set sql %}
|
|
|
|
{{ udf_bulk_get_topshot_moments_minted_metadata() }};
|
|
{{ udf_bulk_get_nfl_allday_moments_metadata() }};
|
|
|
|
{{ create_udtf_get_base_table(
|
|
schema = "streamline"
|
|
) }}
|
|
{{ create_udf_get_chainhead() }}
|
|
{{ create_udf_bulk_grpc() }}
|
|
{{ create_udf_api() }}
|
|
|
|
{{ run_create_udf_array_disjunctive_union() }}
|
|
|
|
{% endset %}
|
|
{% do run_query(sql) %}
|
|
{{- fsc_utils.create_udfs() -}}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endmacro %}
|