{% load i18n %}
{% blocktrans with col=column %}JSON shape · {{ col }}{% endblocktrans %}
{% if unsupported %}

{% trans "Not applicable to this engine — JSON-column shape sampling is a PostgreSQL feature here." %}

{% elif shape.sampled == 0 %}

{% trans "No non-null values to sample in this column." %}

{% else %}
{% blocktrans count n=shape.sampled %}{{ n }} row sampled{% plural %}{{ n }} rows sampled{% endblocktrans %} {% trans "nesting depth" %} {{ shape.max_depth }} {% if shape.has_gin %} {% blocktrans count n=shape.gin_indexes|length %}GIN index{% plural %}GIN indexes{% endblocktrans %} · {{ shape.gin_indexes|join:", " }} {% else %} {% trans "no GIN index" %} {% endif %}
{% for t, n in shape.root_types.items %} {{ t }} · {{ n }} {% endfor %}
{% if shape.keys %}
{% for k in shape.keys %} {% endfor %}
{% trans "Top-level key" %} {% trans "Value type" %} {% trans "Present in" %}
{{ k.name }} {{ k.types|join:", " }} {{ k.count }} / {{ shape.sampled }}
{% elif shape.is_object %}

{% trans "Object roots with no top-level keys (empty objects)." %}

{% else %}

{% trans "No object roots in the sample, so there are no top-level keys to show." %}

{% endif %}

{% trans "Sampled, not exhaustive — this describes the rows examined, not every row. A fact, not a rule." %}

{% endif %}