BrickTracker/bricktracker/sql/minifigure/base/select.sql

32 lines
721 B
MySQL
Raw Permalink Normal View History

2025-01-17 11:03:00 +01:00
SELECT
"minifigures"."fig_num",
"minifigures"."set_num",
"minifigures"."name",
"minifigures"."quantity",
"minifigures"."set_img_url",
"minifigures"."u_id",
2025-01-17 11:03:00 +01:00
{% block total_missing %}
NULL AS "total_missing", -- dummy for order: total_missing
2025-01-17 11:03:00 +01:00
{% endblock %}
{% block total_quantity %}
NULL AS "total_quantity", -- dummy for order: total_quantity
2025-01-17 11:03:00 +01:00
{% endblock %}
{% block total_sets %}
NULL AS "total_sets" -- dummy for order: total_sets
2025-01-17 11:03:00 +01:00
{% endblock %}
FROM "minifigures"
2025-01-17 11:03:00 +01:00
{% block join %}{% endblock %}
{% block where %}{% endblock %}
{% block group %}{% endblock %}
{% if order %}
ORDER BY {{ order }}
{% endif %}
{% if limit %}
LIMIT {{ limit }}
{% endif %}