This commit is contained in:
Pablo Martin 2023-11-02 18:13:56 +01:00
parent bccbff7205
commit c2f2739e7e
3 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,10 @@
{% macro no_nulls_in_columns(model) %}
SELECT *
FROM
{{ model }}
WHERE
{% for col in adapter.get_columns_in_relation(model) -%}
{{col.column}} IS NULL OR
{% endfor %}
FALSE
{% endmacro %}