feat: Add SQL script export option
- Added functionality to export the full database schema (CREATE statements) and data (INSERT statements) as a single `.sql` file. - Created a new route `/export/database.sql` in `routes/export.py`. - Added helper functions to `routes/export.py` (adapted from `sql_explorer`) to generate schema CREATE statements and data INSERT statements. - Added a download link for the SQL export to the Settings page (`templates/settings.html`). - Updated the changelog entry for data export to include the SQL option.
This commit is contained in:
@@ -10,6 +10,18 @@
|
||||
<div class="prose max-w-none">
|
||||
<p>Updates and changes to the site will be documented here, with the most recent changes listed first.</p>
|
||||
|
||||
<!-- New Entry for Data Export -->
|
||||
<hr class="my-6">
|
||||
<h2 class="text-xl font-semibold mb-2">April 12, 2025</h2>
|
||||
<ul class="list-disc pl-5 space-y-1">
|
||||
<li>Added functionality to export data from the Settings page:</li>
|
||||
<ul class="list-disc pl-5 space-y-1">
|
||||
<li>Export all workout set data as a CSV file.</li>
|
||||
<li>Export full database schema (CREATE statements) and data (INSERT statements) as an SQL script.
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<!-- New Entry for SQL Generation -->
|
||||
<hr class="my-6">
|
||||
<h2 class="text-xl font-semibold mb-2">April 5, 2025</h2>
|
||||
|
||||
Reference in New Issue
Block a user