{# ── S-143 · Step 6 (Insert / Export) ───────────────────────────────────── Last surface: the user either INSERTs into the configured target database (S-136 with the S-137 HMAC write-guard + S-141 method selector) or EXPORTs the rows as a file (S-140). Insert flow: 1. The "Preview insert" button POSTs ``/api/insert/preview`` to mint a short-lived HMAC confirmation token. 2. On success it dispatches ``studio:open-write-guard`` with the response body — the shared modal then opens, shows the redacted target + scope, and POSTs ``/api/insert`` with the token after explicit confirmation. Export flow: 1. Pick a format (sql / csv / json / parquet) and an optional single-table scope. CSV / Parquet cannot stream multi-table runs in one file (the error envelope says so explicitly). 2. The native form POSTs ``/api/export`` and the browser receives the streamed download. ── #} {% extends "wizard/_step_base.html" %} {% block content %}
You are done — pick how to deliver the data. Insert writes the rows into your connected target with an explicit confirmation. Export downloads a file you can ship anywhere.
{# ── Insert lane ──────────────────────────────────────────────────── #}Requires an active connection (Step 1) and a successful run (Step 4). The write-guard modal will show the redacted target before confirming.