mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
12 lines
378 B
SQL
12 lines
378 B
SQL
-- depends_on: {{ ref('live') }}
|
|
{{ config(
|
|
materialized = 'view',
|
|
grants = {'+select': fromyaml(var('ROLES'))}
|
|
) }}
|
|
SELECT '*.' || t.value AS allowed_domains
|
|
FROM table(flatten(input => {{ this.database }}.live.udf_allow_list())) AS t
|
|
ORDER BY
|
|
split_part(allowed_domains, '.', -1),
|
|
split_part(allowed_domains, '.', -2),
|
|
split_part(allowed_domains, '.', -3)
|