{% import 'macro/accordion.html' as accordion %} {{ accordion.header('Database', 'database', 'admin', expanded=open_database, icon='database-2-line') }}
Status
{% if database_exception %}{% endif %} {% if database_error %}{% endif %} {% if database_upgrade_needed %} {% endif %}

The database file is: {{ config['DATABASE_PATH'] }} at version {{ database_version }}

Download the database file

{% if database_counters %}
Records
{% endif %}
Maintenance
{% if request.args.get('optimize_success') %} {% endif %} {% if request.args.get('cleanup_success') %} {% endif %}

Maintain and optimize your database for best performance.

Check Database Integrity Scan for orphaned records and foreign key violations
Re-create indexes and rebuild statistics (safe to run anytime)
Danger zone
{% if database_error %}{% endif %}
Import a database file Drop the database Delete the database file
{{ accordion.footer() }}