You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6ea4041
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: website/public/index.html
+11-14Lines changed: 11 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -324,8 +324,9 @@ <h3>See what the tests missed</h3>
324
324
<h3>Rename models without rebuilding history</h3>
325
325
<p>
326
326
327
-
<code>sqb rename</code> and <code>sqb mv</code> update every reference and keep the existing table, so an incremental model doesn't start again. The old name keeps working as a view. Renamed columns keep their history too.
327
+
<code>sqb rename</code> and <code>sqb mv</code> update every reference and keep the existing table, so an incremental model doesn't start again. The old name keeps working as a view. Renamed columns keep their history too. The old table is never modified during the migration.
328
328
</p>
329
+
<pclass="more"><ahref="/docs/concepts/models/migrations/">How migrations work →</a></p>
<spanclass="info strong">Rename model daily_activity_rollup -> daily_order_rollup</span>
@@ -350,8 +351,9 @@ <h3>Rename models without rebuilding history</h3>
350
351
<spanclass="num">08 · Tidy up safely</span>
351
352
<h3>Archive old tables before deleting them</h3>
352
353
<p>
353
-
The janitor renames tables your project no longer builds, and only drops them once the archive expires, 14 days later by default.
354
+
The janitor renames tables your project no longer builds, and only drops them once the archive expires, 14 days later by default. Until then an archive can be renamed back, and every move is recorded.
354
355
</p>
356
+
<pclass="more"><ahref="/docs/cli/janitor/">How the janitor works →</a></p>
@@ -368,8 +370,13 @@ <h3>Archive old tables before deleting them</h3>
368
370
<spanclass="num">09 · Investigate</span>
369
371
<h3>Find out what happened, then check what's true now</h3>
370
372
<p>
371
-
Every run is recorded: what ran, the SQL it executed, audit results and everything it printed. Agents and people ask in SQL, then check live state with the same command.
373
+
SQLBuild records every run: what ran, the SQL it executed, audit results and everything it printed. You or an agent can query that history in SQL, and the same command queries the warehouse to check what's true now.
372
374
</p>
375
+
<p>
376
+
Here an audit started warning on the latest run, but the build still exited 0. The first two commands show when it started and what the run printed. The third finds the cause, still in prod: a refund stored as a negative payment.
377
+
</p>
378
+
<p>History lives in a SQLite file in your project, or in ClickHouse for a team. No service to run, no account, no paid tier.</p>
379
+
<pclass="more"><ahref="/docs/concepts/observability/recall/">How Recall works →</a></p>
373
380
</div>
374
381
<preclass="terminal"><spanclass="cmd">sqb recall query "SELECT substr(a.invocation_started_at, 1, 16) AS run,
375
382
a.outcome, a.violation_count, i.status, i.exit_code FROM audit_results a
@@ -391,17 +398,7 @@ <h3>Find out what happened, then check what's true now</h3>
0 commit comments